services:
  caddy:
    image: caddy:2
    container_name: caddy
    network_mode: host
    restart: unless-stopped
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - caddy_data:/data
      - caddy_config:/config
      - /data/blog/dist:/data/blog

volumes:
  caddy_data:
  caddy_config:
