services:
  caddy:
    image: caddy:2-alpine
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - ./site:/srv
      - caddy_data:/data
      - caddy_config:/config
    networks:
      default:
        ipv4_address: 172.20.0.5
volumes:
  caddy_data:
  caddy_config:

networks:
  default:
    external: true
    name: lava