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