Skip to content

Latest commit

 

History

History

caddy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Dockerized caddy with cloudflare plugin

Container Registry

Docker CLI

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

Docker Compose

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

Additional Feature

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.

Source code

GitHub (Also contains other tools to bypass the GFW)

LICENSE

MIT