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
|
||||
11
registrator/env.template
Normal file
11
registrator/env.template
Normal file
@ -0,0 +1,11 @@
|
||||
# Token Consul pour Registrator
|
||||
# Ce token doit avoir les permissions : service:write, node:read, agent:read
|
||||
# Genere lors de l'initialisation des ACL Consul
|
||||
#
|
||||
# INSTRUCTIONS :
|
||||
# 1. Copier ce fichier vers .env
|
||||
# 2. Remplacer la valeur du token par le vrai token
|
||||
# 3. NE PAS VERSIONNER le fichier .env !
|
||||
|
||||
CONSUL_HTTP_TOKEN=votre-token-registrator-ici
|
||||
|
||||
Reference in New Issue
Block a user