diff --git a/compose.yml b/compose.yml index 670e79d..dae6698 100644 --- a/compose.yml +++ b/compose.yml @@ -11,8 +11,9 @@ services: volumes: - ./data:/data - ./config:/config - - ${STACKS_DIR}:${STACKS_DIR}:ro # Backup source - - /mnt:/mnt:ro # Backup additional drives + - ${BACKUP_STACKS_FOLDER}:${BACKUP_STACKS_FOLDER}:ro # Backup source + - ${BACKUP_HOME_FOLDER}:${BACKUP_HOME_FOLDER}:RO # Backup Source + - ${BACKUP_FOLDER}:${BACKUP_FOLDER} # Backup destination - ./cache:/cache environment: - BACKREST_DATA=/data @@ -25,17 +26,26 @@ services: retries: 3 start_period: 30s labels: + # Edit to define the url of this service + - ${HOST_LABEL} + - 'traefik.http.routers.backrest.rule=Host(`backrest.jasper.kelinreij.duckdns.org`)' + # Comment/Uncomment to disable/enable Authelia middleware + - 'traefik.http.routers.backrest.middlewares=authelia@docker' + # Comment/Uncomment to disable/enable Traefik routing + - 'traefik.enable=true' + # Comment/Uncomment to disable/enable watchtower automatic image updates - 'com.centurylinklabs.watchtower.enable=true' + # Use the internal port for the load balancer + - 'traefik.http.services.backrest.loadbalancer.server.port=9898' + # All services being proxied by Traefik must be on this network + - 'traefik.docker.network=traefik-network' + # This enables https + - 'traefik.http.routers.backrest.entrypoints=websecure' + # This enables letsencrypt certificate management + - 'traefik.http.routers.backrest.tls.certresolver=letsencrypt' + # Define the category and description of this service - 'homelab.category=utilities' - 'homelab.description=Backup management with restic' - - 'traefik.enable=true' - - 'traefik.docker.network=traefik-network' - - 'traefik.http.routers.backrest.rule=Host(`backrest.jasper.kelinreij.duckdns.org`)' - - 'traefik.http.routers.backrest.entrypoints=websecure' - - 'traefik.http.routers.backrest.tls.certresolver=letsencrypt' - - 'traefik.http.routers.backrest.middlewares=authelia@docker' - - 'traefik.http.services.backrest.loadbalancer.server.port=9898' - networks: homelab-network: