add Caddy Dockerfile to build image using xcaddy including cloudflare modules docker-compose.yml file builds image instead of pulling it
32 lines
512 B
YAML
32 lines
512 B
YAML
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: |