zydou/caddy

By zydou

Updated about 17 hours ago

Dockerized caddy with cloudflare plugin

Image
2

100K+

zydou/caddy repository overview

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

Tag summary

Content type

Image

Digest

sha256:2fb98f832

Size

16 MB

Last updated

about 17 hours ago

docker pull zydou/caddy:distroless