---
version: "3.7"
services:
gitea:
image: gitea/gitea:1.11.5
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"
proxy:
external: true
git: