31 lines
No EOL
711 B
YAML
31 lines
No EOL
711 B
YAML
|
|
|
|
services:
|
|
fyp-web:
|
|
image: ${IMAGE}
|
|
restart: unless-stopped
|
|
deploy:
|
|
mode: replicated
|
|
replicas: ${REPLICAS}
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.fyp-web.rule=Host(`${DOMAIN}`)"
|
|
- "traefik.http.routers.fyp-web.entrypoints=${ENTRYPOINT}"
|
|
- "traefik.http.routers.fyp-web.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 |