Files
my-self-host-services/caddy/docker-compose.yaml
T
2026-05-10 00:07:06 +04:00

34 lines
685 B
YAML

networks:
caddy:
name: caddy
driver: bridge
external: true
services:
caddy:
build: .
container_name: caddy
restart: unless-stopped
networks:
- caddy
ports:
- "443:443"
- "80:80"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./Caddyfile.private:/etc/caddy/Caddyfile.private
- ./ssl:/etc/ssl/custom/
- ./data/data:/data
- ./data/config:/config
- ./data/log:/var/log/caddy
- ../volume:/volume
- ../private_volume:/private_volume
env_file:
- ./.env
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"