version: '3.3' networks: caddy: services: caddy: image: caddy:latest restart: unless-stopped container_name: caddy ports: - 80:80 - 443:443 volumes: - ./Caddyfile:/etc/caddy/Caddyfile - ./site:/srv - ./caddy_data:/data - ./caddy_config:/config - /root/.acme.sh/example.com/:/ssl/certs