gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitaa2d124eaa2d124eREADME: the #94 purge gatemreaa2d124e/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

  • aa2d124eREADME: the #94 purge gatemre
  • e843ff7cOne-time purge of miserit-anthar#94 (#94, identity rule): idempotent step in lib/migrate.hl, fixture gate tests/purge94.mjsmre
  • 506a4efdmission 028: #94, identity rulemre
  • 78c7f48eRefine mpackdb holdmre
  • 3d7d89c8Record mpackdb hold until day38mre
  • f1bf7195#51 done; my subscription idmre
  • 9870b945status: #51 proof greenmre
  • e92173c6log: #51 live push proofmre
  • 72d87041log: Hermes push livemre
  • 1d69bf7dTickets conductor: park until Hermes pushmre
  • 80d8cfd1Tickets conductor: #51 livemre
  • 61641dd9Complete subscriptions deployment evidencemre
  • c980856cRecord successful subscriptions deployment and live checksmre
  • 4b4710adMerge branch 's51-subscriptions'mre
  • a731ef7eTickets conductor: S51 reviewed, deploy stepmre
  • b487b05aRecord verified direct push protocol handoffmre
  • 74e34cc3Verify encrypted push secrets and direct push retry semanticsmre
  • a1ac5cd0Push subscription notices directly to signed HyperConductor chat endpointsmre
  • d662ad27Remove superseded waker service for direct chat push protocolmre
  • c0ac927aTickets conductor: S51 redo for push protocolmre