Initial commit: Infrastructure Git CI/CD avec Gitea, Woodpecker, PostgreSQL, Consul et Registrator
This commit is contained in:
24
registrator/docker-compose.yml
Normal file
24
registrator/docker-compose.yml
Normal file
@ -0,0 +1,24 @@
|
||||
services:
|
||||
registrator:
|
||||
container_name: registrator
|
||||
image: gliderlabs/registrator:latest
|
||||
restart: unless-stopped
|
||||
|
||||
# IMPORTANT : Creer le fichier .env a partir de env.template avant le deploiement
|
||||
# Le fichier .env contient le token CONSUL_HTTP_TOKEN pour l'authentification ACL
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
# -internal : utilise les IPs internes Docker
|
||||
# Le token est passe via la variable d'environnement CONSUL_HTTP_TOKEN
|
||||
command: -internal consul://consul:8500
|
||||
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
|
||||
networks:
|
||||
- gitgit_syoul_fr_gitea_net
|
||||
|
||||
networks:
|
||||
gitgit_syoul_fr_gitea_net:
|
||||
external: true
|
||||
Reference in New Issue
Block a user