Add Caddy Docker compose file

This commit is contained in:
moshferatu 2023-11-15 05:51:10 -08:00
parent b1d03c8605
commit c67738ba71

21
caddy.yaml Normal file
View 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>