docker-compose/caddy.yaml

21 lines
496 B
YAML
Raw Normal View History

2023-11-15 13:51:10 +00:00
version: "3"
networks:
cloudflare-tunnel:
external: true
services:
caddy:
image: caddy:latest
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- <docker directory>/caddy/data:/data
- <docker directory>/caddy/config:/config
- <website directory>/Caddyfile:/etc/caddy/Caddyfile
- <website directory>:/srv
networks:
cloudflare-tunnel:
ipv4_address: <static ip>