services: caddy: build: context: . dockerfile: Dockerfile restart: unless-stopped container_name: caddy ports: - "81:81" - "444:444" 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: