46 lines
1.5 KiB
YAML
46 lines
1.5 KiB
YAML
# docker-compose.yml — Apprise API
|
|
# Documentation : https://github.com/caronc/apprise-api
|
|
|
|
services:
|
|
apprise:
|
|
image: caronc/apprise:latest
|
|
container_name: apprise
|
|
restart: unless-stopped
|
|
extra_hosts:
|
|
- "gitea.lexformatique.fr:192.168.2.11"
|
|
- "gotify.lexformatique.fr:192.168.2.11"
|
|
- "ntfy.lexformatique.fr:192.168.2.11"
|
|
ports:
|
|
- "8010:8000"
|
|
environment:
|
|
# Mode stateful : stocke les configs de notification côté serveur
|
|
APPRISE_STATEFUL_MODE: simple
|
|
# Nombre de workers Gunicorn (adapter selon CPU)
|
|
APPRISE_WORKER_COUNT: "2"
|
|
# Interface d'administration web (y/n)
|
|
APPRISE_ADMIN: "y"
|
|
# Verrou sur la configuration (empêche la modif via UI)
|
|
APPRISE_CONFIG_LOCK: "no"
|
|
# Taille max des pièces jointes en Mo (0 = désactivé)
|
|
APPRISE_ATTACH_SIZE: "10"
|
|
# Fuseau horaire
|
|
TZ: Europe/Paris
|
|
volumes:
|
|
- /data/apprise/config:/config # Configurations de notification (clés/URLs)
|
|
- /data/apprise/plugin:/plugin # Plugins personnalisés (optionnel)
|
|
- /data/apprise/attach:/attach # Pièces jointes (optionnel)
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/status"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
networks:
|
|
- 001-stack-npm_nginx-proxy
|
|
# Pas de ports exposés : accès uniquement via NPM
|
|
|
|
networks:
|
|
001-stack-npm_nginx-proxy:
|
|
external: true # Réseau créé par NPM
|
|
|