mirror of
https://github.com/PAPAMICA/docker-compose-collection.git
synced 2026-03-18 21:30:41 +01:00
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
# Docker-compose mis à disposition par Mickael "PAPAMICA" Asseline
|
|
# Date de mise à jour : 27/10/2020
|
|
|
|
# Variables d'environnement à déclarer :
|
|
# - SERVICE : nom du service (exemple : plex)
|
|
# - DATA_LOCATION : localisation des données (exemple /apps/"service")
|
|
# - URL_LOKI : lien du serveur loki (exemple : ndd/loki/api/v1/push)
|
|
# - NDD : lien du nom de domaine (exemple : papamica.fr)
|
|
|
|
# Fonctionne avec Portainer
|
|
|
|
version: "2"
|
|
|
|
services:
|
|
# Script zabbix-cachet : https://github.com/qk4l/zabbix-cachet
|
|
zabbix-cachet:
|
|
image: qk4l/zabbix-cachet:latest
|
|
container_name: $SERVICE
|
|
volumes:
|
|
- $DATA_LOCATION/config.yml:/config.yml
|
|
restart: always
|
|
healthcheck:
|
|
test: grep -qr "python" /proc/*/status || exit 1
|
|
interval: 1m
|
|
timeout: 30s
|
|
retries: 3
|
|
|
|
|
|
# Facultatif
|
|
networks:
|
|
- proxy
|
|
logging:
|
|
driver: loki
|
|
options:
|
|
loki-url: "$URL_LOKI"
|
|
loki-external-labels: service={{.Name}}
|
|
|
|
networks:
|
|
proxy:
|
|
external:
|
|
name: proxy
|