services: caddy: build: . container_name: caddy restart: unless-stopped cap_add: - NET_ADMIN ports: - 80:80 - 443:443 - 443:443/udp volumes: - data:/data - config:/config - ./caddyfiles:/etc/caddy/ environment: CF_ZONE_TOKEN: ${CF_ZONE_TOKEN} CF_API_TOKEN: ${CF_API_TOKEN} volumes: data: config: networks: default: name: proxy external: true