Files
P-Bulle/caddy/compose.yaml
T
nocodeandClaude Opus 5.5 971e1db036 Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:53:14 +01:00

75 lines
1.9 KiB
YAML
Executable File

services:
caddy:
image: caddy:2
container_name: caddy
restart: unless-stopped
# mode host : Caddy joint les services via leurs ports sur l'hôte,
# y compris ceux liés à 127.0.0.1 (stack arr), sans toucher aux autres stacks
network_mode: host
volumes:
- ./data:/data
- ./config:/config
configs:
- source: caddyfile
target: /etc/caddy/Caddyfile
# Variables (.env dans Dockge) : DOMAIN, AUTH_USER, AUTH_HASH
configs:
caddyfile:
content: |
{
# certificats signés par la CA interne de Caddy (pas de Let's Encrypt en local)
local_certs
}
# les apps *arr n'ont pas de mot de passe au premier lancement
(auth) {
basic_auth {
${AUTH_USER:-admin} ${AUTH_HASH:?AUTH_HASH manquant, voir le .env}
}
}
# repris de l'ancien nginx
jelly.${DOMAIN:-localhost} {
reverse_proxy localhost:8096
}
vault.${DOMAIN:-localhost} {
reverse_proxy localhost:9445
}
grafana.${DOMAIN:-localhost} {
reverse_proxy localhost:3000
}
dockge.${DOMAIN:-localhost} {
reverse_proxy localhost:5001
}
netbox.${DOMAIN:-localhost} {
reverse_proxy localhost:8000
}
jellyseerr.${DOMAIN:-localhost} {
reverse_proxy localhost:5055
}
prowlarr.${DOMAIN:-localhost} {
import auth
reverse_proxy localhost:9696
}
radarr.${DOMAIN:-localhost} {
import auth
reverse_proxy localhost:7878
}
sonarr.${DOMAIN:-localhost} {
import auth
reverse_proxy localhost:8989
}
sabnzbd.${DOMAIN:-localhost} {
import auth
reverse_proxy localhost:8085
}
spotweb.${DOMAIN:-localhost} {
import auth
reverse_proxy localhost:8086
}
handbrake.${DOMAIN:-localhost} {
import auth
reverse_proxy localhost:5800
}