Dynavera/compose/prod/docker-compose.yml

43 lines
1.1 KiB
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}
2025-11-19 12:55:15 +00:00
env_file:
- ../../.env
2025-11-10 15:52:18 +00:00
labels:
- "traefik.enable=true"
2025-11-10 15:56:46 +00:00
- "traefik.http.routers.fyp-web.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.fyp-web.entrypoints=${ENTRYPOINT}"
- "traefik.http.routers.fyp-web.tls.certresolver=${CERTRESOLVER}"
2025-11-19 12:55:15 +00:00
- "traefik.http.services.fyp-web.loadbalancer.server.port=${PORT}"
2025-11-10 15:52:18 +00:00
- "com.centurylinklabs.watchtower.enable=true"
2025-11-27 15:20:42 +00:00
- "com.centurylinklabs.watchtower.scope=fyp"
volumes:
- ../../static:/app/static
- ../../media:/app/media
2025-11-10 15:52:18 +00:00
networks:
- proxy
fyp-watchtower:
image: containrrr/watchtower
command:
2025-11-27 15:20:42 +00:00
- "--scope=fyp"
2025-11-10 15:52:18 +00:00
- "--label-enable"
- "--interval"
- "30"
- "--rolling-restart"
environment:
- WATCHTOWER_CLEANUP=true
- REPO_USER=${GITLAB_USER}
- REPO_PASS=${GITLAB_PASS}
2025-11-10 15:52:18 +00:00
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
proxy:
external: true