Add labels and network for traefik

This commit is contained in:
2025-07-20 21:43:58 +05:30
parent 121f4b1b21
commit 74d405d9d9
3 changed files with 39 additions and 0 deletions

View File

@@ -3,6 +3,13 @@ services:
container_name: syncyomi
image: ghcr.io/syncyomi/syncyomi:v1.1.4
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.http.routers.syncyomi.rule=Host(`${TRAEFIK_DOMAIN}`)
- traefik.http.routers.syncyomi.entrypoints=https
- traefik.http.routers.syncyomi.tls=true
- traefik.http.routers.syncyomi.tls.certresolver=cloudflare
- traefik.http.services.syncyomi.loadbalancer.server.port=8282
environment:
- TZ=${TZ}
volumes:
@@ -10,9 +17,15 @@ services:
- ${APPDATA_PATH}/syncyomi/log:/log
ports:
- ${PORT}:8282
networks:
- frontend
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8282"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
networks:
frontend:
external: true