Dynavera/compose/prod/docker-compose.yml

31 lines
717 B
YAML
Raw Normal View History

2025-11-10 15:52:18 +00:00
services:
fyp-web:
image: ${IMAGE}
restart: unless-stopped
deploy:
mode: replicated
replicas: ${REPLICAS}
labels:
- "traefik.enable=true"
- "traefik.http.routers.web-fishy.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.web-fishy.entrypoints=${ENTRYPOINT}"
- "traefik.http.routers.web-fishy.tls.certresolver=${CERTRESOLVER}"
- "com.centurylinklabs.watchtower.enable=true"
networks:
- proxy
fyp-watchtower:
image: containrrr/watchtower
command:
- "--label-enable"
- "--interval"
- "30"
- "--rolling-restart"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
proxy:
external: true