.env files moved to the backed-up, non-source-controlled data dir
alongside each app's other state. immich and authentik keep a
symlink instead, since their compose.yml relies on ${VAR}
interpolation which Compose only resolves from a .env next to the
compose file (or via --env-file), not from the env_file: directive.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPXhxhLUopnuDm3dWeHd5C
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
services:
|
|
caddy:
|
|
build: ../../caddy-dns-cloudflare
|
|
container_name: caddy
|
|
restart: unless-stopped
|
|
cap_add:
|
|
- NET_ADMIN
|
|
env_file:
|
|
- /mnt/storage/apps/caddy/.env
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=America/Los_Angeles
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "443:443/udp"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- ./conf:/etc/caddy
|
|
- /mnt/storage/apps/caddy/data:/data
|
|
- /mnt/storage/apps/caddy/config:/config
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:80"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 20s
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 512M
|
|
cpus: '0.5'
|
|
networks:
|
|
- proxy
|
|
- miccheck-qa-net
|
|
- novelly-net
|
|
|
|
networks:
|
|
proxy:
|
|
name: proxy
|
|
external: true
|
|
miccheck-qa-net:
|
|
name: miccheck-qa-net
|
|
external: true
|
|
novelly-net:
|
|
name: novelly-net
|
|
external: true
|