Update compose.yml

This commit is contained in:
2026-03-13 01:25:46 -04:00
parent cc95d39331
commit fd7cc45276

View File

@@ -1,49 +1,42 @@
services: services:
backrest: homepage:
image: garethgeorge/backrest:latest image: ghcr.io/gethomepage/homepage:latest
container_name: backrest container_name: homepage
restart: unless-stopped restart: unless-stopped # change to 'no' to enable Sablier lazy loading
networks: networks:
- homelab-network - homelab-network
- traefik-network - traefik-network
ports: ports:
- '9898:9898' - '3003:3000'
volumes: volumes:
- ./data:/data - ./config:/app/config
- ./config:/config - /var/run/docker.sock:/var/run/docker.sock # For Docker integration do not mount RO
- ${STACKS_DIR}:${STACKS_DIR}:ro # Backup source - ${STACKS_DIR}:${STACKS_DIR} # To discover other stacks
- /mnt:/mnt:ro # Backup additional drives
- ./cache:/cache
environment: environment:
- BACKREST_DATA=/data - PUID=${PUID} # Must be set to the docker user ID
- BACKREST_CONFIG=/config/config.json - PGID=${PGID} # Must be set to the docker group ID
- TZ=${TZ} - TZ=${TZ}
healthcheck: - HOMEPAGE_ALLOWED_HOSTS=${HOMEPAGE_ALLOWED_HOSTS}, ${SERVER_IP}:3003
test: ['CMD', 'wget', '--quiet', '--tries=1', '--spider', 'http://localhost:9898/']
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
labels: labels:
- 'com.centurylinklabs.watchtower.enable=true' - 'homelab.category=dashboard'
- 'homelab.category=utilities' - 'homelab.description=Application dashboard'
- 'homelab.description=Backup management with restic'
- 'traefik.enable=true' - 'traefik.enable=true'
- 'traefik.docker.network=traefik-network' - 'traefik.docker.network=traefik-network'
- 'traefik.http.routers.backrest.rule=Host(`backrest.jasper.kelinreij.duckdns.org`)' - 'traefik.http.routers.homepage.rule=Host(`homepage.kelinreij.duckdns.org`)'
- 'traefik.http.routers.backrest.entrypoints=websecure' - 'traefik.http.routers.homepage.entrypoints=websecure'
- 'traefik.http.routers.backrest.tls.certresolver=letsencrypt' - 'traefik.http.routers.homepage.tls.certresolver=letsencrypt'
- 'traefik.http.routers.backrest.middlewares=authelia@docker' - 'traefik.http.routers.homepage.tls=true'
- 'traefik.http.services.backrest.loadbalancer.server.port=9898' - 'traefik.http.routers.homepage.middlewares=authelia@docker'
- 'traefik.http.services.homepage.loadbalancer.server.port=3000'
x-dockge:
urls:
# Proxied URLs (through Traefik)
- https://homepage.kelinreij.duckdns.org
- https://192.168.4.4:3003
networks: networks:
homelab-network: homelab-network:
external: true external: true
traefik-network: traefik-network:
external: true external: true
x-dockge:
urls:
- https://backrest.kelinreij.duckdns.org
- https://192.168.4.4:9898