gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchpr-flowd876d0b2|||PR README: changes land as PRsmrepr-flow/docker-compose.yml

3.8 KB

  1. # tickets.worldapi.org on Byrodin — house pattern of notes.worldapi.org
  2. # (/CONTAINERS/projects/notes.worldapi.org): ./Dockerfile = debian:12-slim + libssl3 + ca-certificates (bin/hybriel is a glibc binary,
  3. # needs GLIBC_2.36 = debian 12), host network, the app on 127.0.0.1:45003, nginx proxies
  4. # it and ends TLS (vhost needs the WebSocket Upgrade headers: the live push rides `/`).
  5. # The whole folder is the bind mount: storage/mpackdb/ and .sessions/ live here and persist.
  6. # Deploy: ./deploy.sh on Loreana (README "Deploy").
  7. # HYBRIEL COMPILES THE APP AT ITS START (no interpreter since hybriel mission 326; hybriel#148): it writes scratch
  8. # files to /tmp (a tmpfs here) and its build cache to HL_CACHE_DIR (hybriel a832f73b, mission 332: run/ = the built
  9. # program, incr/ = the incremental stages, lib/ = the carried runtime library) = /root/.hybriel/cache, inside the named
  10. # volume `hybriel-cache`, so a restart starts warm (~1–3 s) and only a new binary or changed code compiles again (cold ~25 s).
  11. # LOGIN VIA IDENT (ticket #7): IDENT_API_KEY, IDENT_API_SECRET and TICKETS_CREATOR_IDENTITY come
  12. # from `.env` in this folder (the hybriel runtime loads a .env beside project.hl; the real
  13. # environment wins) — never written here. IDENT_URL / TICKETS_PUBLIC_URL default to the public
  14. # https origins. IDENT_EXCHANGE_URL: the server-side code exchange goes straight to ident's
  15. # loopback port (host network) instead of through Cloudflare + nginx.
  16. services:
  17. tickets:
  18. container_name: tickets.worldapi.org
  19. init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)
  20. build: .
  21. image: "worldapi-hybriel-runtime:debian12"
  22. working_dir: /home/tickets
  23. network_mode: host
  24. restart: unless-stopped
  25. ulimits:
  26. nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)
  27. environment:
  28. - HL_HOST=127.0.0.1
  29. - TICKETS_PORT=45003
  30. - TICKETS_WATCH=0
  31. - IDENT_EXCHANGE_URL=http://127.0.0.1:45002
  32. - HL_CACHE_DIR=/root/.hybriel/cache
  33. volumes:
  34. - ./:/home/tickets
  35. - hybriel-cache:/root/.hybriel
  36. tmpfs:
  37. - /tmp:exec,mode=1777
  38. command: ./bin/hybriel project.hl
  39. # STANDBY (deploys without a gap): the same image and the same bind mount on port 45013 (= main port + 10). nginx lists it as the
  40. # `backup` server of the tickets upstream, so it only gets requests while 45003 is down. The profile keeps `docker compose up -d` from
  41. # starting it; ../worldapi-conductor/standby-swap.sh starts it for a deploy and stops it again. only main sends subscription wakes; standby writes are reconciled by main on takeover.
  42. # About 40 s with two processes: the live push list (subscribers of /api/events) is per process, so a page connected to the main container does
  43. # not get the pushes of a change made on the standby (and the other way round) until its connection reopens; the data itself is read from the
  44. # shared storage, and a reload shows everything. Sessions: as in gitoria, a login made in that window may need one more sign-in.
  45. tickets-standby:
  46. init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)
  47. build: .
  48. image: "worldapi-hybriel-runtime:debian12"
  49. working_dir: /home/tickets
  50. network_mode: host
  51. ulimits:
  52. nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)
  53. volumes:
  54. - ./:/home/tickets
  55. - hybriel-cache:/root/.hybriel
  56. tmpfs:
  57. - /tmp:exec,mode=1777
  58. command: ./bin/hybriel project.hl
  59. container_name: tickets.worldapi.org-standby
  60. profiles: ["standby"]
  61. restart: "no"
  62. environment:
  63. - HL_HOST=127.0.0.1
  64. - TICKETS_PORT=45013
  65. - TICKETS_WAKES_DISABLED=1
  66. - TICKETS_WATCH=0
  67. - IDENT_EXCHANGE_URL=http://127.0.0.1:45002
  68. - HL_CACHE_DIR=/root/.hybriel/cache
  69. volumes:
  70. hybriel-cache:

Branches

Latest commits

  • d876d0b2|||PR README: changes land as PRsmre
  • 3b858c91Log backup hard-link fixmre
  • 7f6b37a0deploy.sh backup: tar --hard-dereference (hard links broke mpackdb sidecars on restore)mre
  • e93711d9Log E30 livemre
  • 59c02e4dMerge e30: preserve edited state note labels in Markdownmre
  • 30970796Log E30 deploy GOmre
  • 7c8e6d83Limit edited state note fix to Markdown renderingmre
  • 910536d0Log E30 reviewmre
  • 36984386Preserve state transitions when their notes are editedmre
  • d75cb946Log E30 startmre
  • 0bf3fefaMission 030: edited state note labelmre
  • 691565c6Log neutral-ticket rule checkmre
  • bc3bdecerecords: day38b live, #94 purgedmre
  • f6c5aa0dMerge main (records)mre
  • e23d42acconnect gate: wait for hydration before clicking Disconnectmre
  • a5d45d00records: D38 cause, GOmre
  • 19eeb938records: D38 gates, two day38b failuresmre
  • f8e42a85Re-vendor tickets to Hybriel set day38b (1e554d7)mre
  • 51645016Merge purge-94 (#94, identity rule)mre
  • 94d6ca2arecords: D38 startedmre