Add Caddy Docker compose file
This commit is contained in:
parent
b1d03c8605
commit
c67738ba71
21
caddy.yaml
Normal file
21
caddy.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
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>
|
Loading…
Reference in New Issue
Block a user