Dockerized caddy with cloudflare plugin
docker run -d -restart=always \
--name caddy \
-e CFAPI=your-cloudflare-api
-p 80:80 \
-p 80:80/udp \
-p 443:443 \
-p 443:443/udp \
-v $(pwd)/Caddyfile:/etc/caddy/Caddyfile \
zydou/caddy:latest
version: "3.9"
services:
service.caddy:
image: zydou/caddy:latest
container_name: caddy
restart: always
environment:
CFAPI: "your-cloudflare-api"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./html:/srv
- ./.caddy_data:/data
- ./.caddy_config:/config
ports:
- 80:80
- 80:80/udp
- 443:443
- 443:443/udp
The zydou/caddy:latest
only has cloudflare
plugin. If you need to work with naiveproxy, you must use the naive
tag (i.e zydou/caddy:naive
), which also has the forwardproxy plugin.
GitHub (Also contains other tools to bypass the GFW)