version: "3" services: caddy: image: docker.io/caddy:2.6.2-alpine restart: unless-stopped ports: - "80:80" network_mode: "host" volumes: - ./Caddyfile:/etc/caddy/Caddyfile - ./data:/data - ./config:/config - ./logs:/logs