add Caddy docker configuration
add Caddy Dockerfile to build image using xcaddy including cloudflare modules docker-compose.yml file builds image instead of pulling it
This commit is contained in:
32
caddy/docker-compose.yml
Normal file
32
caddy/docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: caddy
|
||||
services:
|
||||
caddy:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- proxy-net
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "443:443/udp"
|
||||
- "2019:2019"
|
||||
configs:
|
||||
- source: caddyfile
|
||||
target: /etc/caddy/Caddyfile
|
||||
volumes:
|
||||
- ./data/site:/srv
|
||||
- ./data/logs:/logs
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
|
||||
networks:
|
||||
proxy-net:
|
||||
external: true
|
||||
|
||||
configs:
|
||||
caddyfile:
|
||||
file: ./Caddyfile
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
Reference in New Issue
Block a user