Closed fky2015 closed 5 months ago
As the docs said:
Global options can be defined by not setting any value for caddy. They can be set in any container/service, including caddy-docker-proxy itself. Here is an example
A minimum reproducible example is here:
version: "3.7" services: caddy: image: lucaslorentz/caddy-docker-proxy:ci-alpine # build: ./ ports: - 80:80 - 443:443 environment: - CADDY_INGRESS_NETWORKS=caddy networks: - caddy labels: caddy.email: you@example.com volumes: - /var/run/docker.sock:/var/run/docker.sock - caddy_data:/data - ./config:/config/caddy restart: unless-stopped networks: caddy: external: true volumes: caddy_data: {}
Then run:
docker compose up -d cat config/Caddyfile.autosave
Got:
# Empty caddyfile
In fact, this problem does not exist
As the docs said:
A minimum reproducible example is here:
Then run:
Got: