Dynavera/compose/prod/docker-compose.yml
2025-11-19 13:30:51 +00:00

41 lines
No EOL
1,009 B
YAML

services:
fyp-web:
image: ${IMAGE}
restart: unless-stopped
deploy:
mode: replicated
replicas: ${REPLICAS}
env_file:
- ../../.env
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}"
- "traefik.http.services.fyp-web.loadbalancer.server.port=${PORT}"
- "com.centurylinklabs.watchtower.enable=true"
volumes:
- ../../static:/app/static
- ../../media:/app/media
networks:
- proxy
fyp-watchtower:
image: containrrr/watchtower
command:
- "--label-enable"
- "--interval"
- "30"
- "--rolling-restart"
environment:
- WATCHTOWER_CLEANUP=true
- REPO_USER=${GITLAB_USER}
- REPO_PASS=${GITLAB_PASS}
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
proxy:
external: true