Files
rose-ash/docker-compose.dev-sx.yml
giles 75827b4828 Fix source display: add sxc mount, HTML tag forms, Playwright debug tools
- Add missing ./sx/sxc:/app/sxc:ro volume mount to dev-sx compose —
  container was using stale image copy of docs.sx where ~docs/code had
  (&key code) instead of (&key src), so highlight output was silently
  discarded
- Register HTML tags as special forms in WASM browser kernel so keyword
  attrs are preserved during render-to-dom
- Add trace-boot, hydrate-debug, eval-at modes to sx-inspect.js for
  debugging boot phases and island hydration

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 21:39:32 +00:00

32 lines
875 B
YAML

# Native OCaml SX server — no Python, no Quart
# Accessible at sx.rose-ash.com via Caddy on externalnet
services:
sx_docs:
image: registry.rose-ash.com:5000/sx_docs:latest
entrypoint: ["/app/bin/sx_server", "--http", "8000"]
working_dir: /app
environment:
SX_PROJECT_DIR: /app
OCAMLRUNPARAM: "b"
ports:
- "8013:8000"
volumes:
# SX source files (hot-reload on restart)
- ./spec:/app/spec:ro
- ./lib:/app/lib:ro
- ./web:/app/web:ro
- ./sx/sx:/app/sx:ro
- ./sx/sxc:/app/sxc:ro
- ./shared:/app/shared:ro
# OCaml binary (rebuild with: cd hosts/ocaml && eval $(opam env) && dune build)
- ./hosts/ocaml/_build/default/bin/sx_server.exe:/app/bin/sx_server:ro
networks:
- externalnet
- default
restart: unless-stopped
networks:
externalnet:
external: true