docker-vm-compose/caddy/compose.yaml
Mika Bomm b40fe970b7 fix caddy for public sites
caddy is now fully functional only nitpick is that 444 is always required
and docker build for the porkbun support
2024-07-23 23:27:25 +02:00

29 lines
467 B
YAML

services:
caddy:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
container_name: caddy
ports:
- "81:81"
- "444:444"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv
- caddy_data:/data
- caddy_config:/config
- ./logs:/var/log/caddy
networks:
- caddy
env_file:
- .env
networks:
caddy:
volumes:
caddy_data:
external: true
caddy_config: