gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitcd3641a1cd3641a1|||PR records: day72 deploy live, tickets closedmrecd3641a1/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

  • cd3641a1|||PR records: day72 deploy live, tickets closedmre
  • 7d44d852Merge branch 'records-t37' into mainTickets
  • 926f7061|||PR records: merges, D36 deploymre
  • bf58534eMerge branch 'l33-final' into mainTickets
  • 759a9ac3|||PR thin login (tickets#46, #45): merge main, route entry cleanupmre
  • 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
  • 5822cb3aMerge branch 'o34-clean' into mainTickets
  • 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
  • 14cf96b4Merge branch 'records-t36' into mainTickets
  • 07749fa1|||PR records: day72 + #40 mergedmre
  • ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre
  • 6dea1c60Merge branch 'r35-day72' into mainTickets
  • 7bcfdc22|||PR drop worker edits to conductor recordsmre
  • 2617b6ee|||PR dialogs: host flag cleared on close, dialog gate (tickets#40)mre
  • 6e701371|||PR record partial day72 dialog validationmre
  • b9fb9a91|||PR bind ticket dialog visibility to member flagsmre
  • 0788e65f|||PR re-vendor Hybriel day72mre
  • e2a6bdcfMerge branch 'records-t35' into mainTickets
  • d8d54df1|||PR records: R35 day72 + #40mre
  • 8a7f475aMerge branch 'records-t33' into mainTickets