# Native OCaml HTTP server for sx_docs — no Python, no Quart
# Overrides dev-sx.yml entrypoint to use sx_server --http
#
# Usage:
#   docker compose -p sx-dev -f docker-compose.dev-sx.yml -f docker-compose.dev-sx-native.yml up

services:
  sx_docs:
    entrypoint: ["/app/bin/sx_server", "--http", "8000"]
    environment:
      SX_PROJECT_DIR: /app
      SX_SPEC_DIR: /app/spec
      SX_LIB_DIR: /app/lib
      SX_WEB_DIR: /app/web
    volumes:
      # Static files (CSS, JS, WASM) — served by Caddy on externalnet
      - ./shared/static:/app/static:ro
