services: caddy: image: caddy:latest restart: unless-stopped ports: - "80:80" - "443:443" volumes: # Shared Caddyfile directory — both services mount the same path - ./caddy:/etc/caddy - caddy_data:/data - caddy_config:/config # NOTE: Your Caddyfile must contain `admin :2019` in the global block # for KonCad to communicate with Caddy. See caddy/Caddyfile.example koncad: build: . restart: unless-stopped ports: - "8080:80" volumes: - ./caddy:/etc/caddy environment: CADDY_ADMIN_URL: http://caddy:2019 depends_on: - caddy volumes: caddy_data: caddy_config: