Add labels and network for traefik
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user