This repository has been archived on 2020-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
git.autonomic.zone/docker-compose.production.yml
Luke Murphy 26cc6c3bb3
All checks were successful
continuous-integration/drone/push Build is passing
Wire up swarm version place holders
2020-05-01 17:52:53 +02:00

32 lines
683 B
YAML

---
version: "3.7"
services:
gitea:
image: gitea/gitea:1.11.4
volumes:
- git:/data
networks:
- proxy
deploy:
mode: replicated
replicas: 1
update_config:
failure_action: rollback
placement:
constraints:
- node.role == manager
labels:
- "traefik.enable=true"
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
- "traefik.http.routers.gitea.rule=Host(`gitea.swarm.autonomic.zone`)"
- "traefik.http.routers.gitea.entrypoints=web-secure"
- "traefik.http.routers.gitea.tls.certresolver=staging"
networks:
proxy:
external: true
volumes:
git: