Update compose.yml

This commit is contained in:
2026-03-14 11:52:20 -04:00
parent 55fce2232d
commit b1c6a36476

View File

@@ -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: