feat: ajout des labels Consul pour améliorer la découverte de services

- Mise à jour registrator vers l'image master
- Ajout labels SERVICE_NAME et health checks pour tous les services
- Gitea: labels avec health checks HTTP et TCP
- Woodpecker: labels pour server et agent avec health checks
- PostgreSQL: labels avec health check TCP
- Ajout .env.example et .gitignore pour postgres
This commit is contained in:
2025-12-24 17:36:34 +01:00
parent 4320251b3c
commit 4aa46fbbbb
6 changed files with 48 additions and 2 deletions

View File

@ -1,4 +1,3 @@
GNU nano 7.2 /opt/gitea/docker-compose.yml
version: "3.9"
services:
@ -7,6 +6,16 @@ services:
image: gitea/gitea:latest
restart: always
labels:
- "SERVICE_NAME=gitea"
- "SERVICE_TAGS=web,git"
- "SERVICE_3000_NAME=gitea"
- "SERVICE_3000_CHECK_HTTP=/api/v1/version"
- "SERVICE_3000_CHECK_INTERVAL=15s"
- "SERVICE_22_NAME=gitea-ssh"
- "SERVICE_22_CHECK_TCP=true"
- "SERVICE_22_CHECK_INTERVAL=30s"
env_file:
- gitea.env