services: caddy: image: caddy:2.8.4-alpine restart: unless-stopped container_name: caddy ports: - "80:80" - "443:443" - "81:81" 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: