# HTTPS in front of the reader with Caddy and automatic Let's Encrypt certificates. # Needs a DNS name for this host (MANGACIRCUS_DOMAIN in .env) and ports 80 and 443 reachable # from the internet. Use it with the main file, e.g. in .env: # COMPOSE_FILE=docker-compose.yml:deploy/compose.https.yml # Already running a reverse proxy? Skip this file and see docs/deployment.md, "Your own proxy". services: reader: ports: !reset [] environment: COOKIE_SECURE: "1" caddy: image: caddy:2.8.4-alpine restart: unless-stopped ports: ["80:80", "443:443", "443:443/udp"] environment: MANGACIRCUS_DOMAIN: ${MANGACIRCUS_DOMAIN:?Set MANGACIRCUS_DOMAIN in .env} volumes: - ./deploy/Caddyfile:/etc/caddy/Caddyfile:ro - caddy-data:/data - caddy-config:/config networks: [egress] depends_on: [reader] volumes: caddy-data: {} caddy-config: {}