docker-vm-compose/caddy/compose.yaml

32 lines
551 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
- ./logs:/var/log/caddy
# extra Caddyfiles
- ./services:/etc/caddy/services
# volume data
- caddy_data:/data
- caddy_config:/config
networks:
- caddy
env_file:
- .env
networks:
caddy:
volumes:
caddy_data:
external: true
caddy_config: