docker-vm-compose/caddy/compose.yaml
Mika Bomm 4bc7c8949c never forget either
Caddyfile,
Firewall,
Docker compose
ALL can fail
2024-08-05 18:34:16 +02:00

34 lines
639 B
YAML

services:
caddy:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
container_name: caddy
ports:
- "80:80"
- "443:443"
# Leftover from the Nginx proxy manager times
#- "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: