32 lines
683 B
YAML
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:
|