21 lines
496 B
YAML
21 lines
496 B
YAML
|
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>
|