gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchnotes9-no-pollc49ce093|||PR WIP remove notes polling and use framework reachabilityAtlasnotes9-no-poll/docker-compose.yml

3.3 KB

  1. # notes.worldapi.org on Byrodin — same pattern as gitoria.worldapi.org: ./Dockerfile = debian:12-slim +
  2. # libssl3 + ca-certificates, host network, the app on 127.0.0.1:45007, nginx proxies it and ends TLS
  3. # (the vhost needs the WebSocket Upgrade headers: the live push rides `/`).
  4. # The container REPLACES the old demo-notes (port 45000) at the same address: at the first deploy the architect
  5. # backs the demo up, stops it and points the vhost to 45007.
  6. # HYBRIEL COMPILES THE APP AT ITS START (hybriel#148, a832f73b): scratch files go to /tmp (a tmpfs), the build cache to
  7. # HL_CACHE_DIR = /root/.hybriel/cache in the named volume `hybriel-cache`, so a restart starts warm (~1–3 s); a new
  8. # binary or changed code compiles again (cold ~25 s).
  9. # The whole folder is the bind mount: storage/mpackdb/ and .sessions/ live here and persist.
  10. # LOGIN VIA IDENT: IDENT_API_KEY and IDENT_API_SECRET come from `.env` in this folder (never written here).
  11. # The app is registered in ident with ONE origin, https://notes.worldapi.org.
  12. # IDENT_EXCHANGE_URL: the server-side code exchange goes straight to ident's loopback port.
  13. services:
  14. notes:
  15. container_name: notes.worldapi.org
  16. init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)
  17. build: .
  18. image: "worldapi-hybriel-runtime:debian12"
  19. working_dir: /home/notes
  20. network_mode: host
  21. restart: unless-stopped
  22. ulimits:
  23. nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)
  24. environment:
  25. - HL_HOST=127.0.0.1
  26. - NOTES_PORT=45007
  27. - NOTES_WATCH=0
  28. - IDENT_EXCHANGE_URL=http://127.0.0.1:45002
  29. - HL_CACHE_DIR=/root/.hybriel/cache
  30. volumes:
  31. - ./:/home/notes
  32. - hybriel-cache:/root/.hybriel
  33. tmpfs:
  34. - /tmp:exec,mode=1777
  35. command: ./bin/hybriel project.hl
  36. # STANDBY (deploys without a gap): the same image and the same bind mount on port 45017 (= main port + 10). nginx lists it as the
  37. # `backup` server of the notes upstream, so it only gets requests while 45007 is down. The profile keeps `docker compose up -d` from
  38. # starting it; ../worldapi-conductor/standby-swap.sh starts it for a deploy and stops it again. notes has no background jobs or timers.
  39. # About 40 s with two processes: only the sign-in attempt counter (lib/ratelimit.hl) is in memory, per process, which does not matter. Notes are read
  40. # from the shared storage; the check path is the page itself, which can only answer once the tables are loaded (they are loaded at start).
  41. notes-standby:
  42. init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)
  43. build: .
  44. image: "worldapi-hybriel-runtime:debian12"
  45. working_dir: /home/notes
  46. network_mode: host
  47. ulimits:
  48. nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)
  49. volumes:
  50. - ./:/home/notes
  51. - hybriel-cache:/root/.hybriel
  52. tmpfs:
  53. - /tmp:exec,mode=1777
  54. command: ./bin/hybriel project.hl
  55. container_name: notes.worldapi.org-standby
  56. profiles: ["standby"]
  57. restart: "no"
  58. environment:
  59. - HL_HOST=127.0.0.1
  60. - NOTES_PORT=45017
  61. - NOTES_WATCH=0
  62. - IDENT_EXCHANGE_URL=http://127.0.0.1:45002
  63. - HL_CACHE_DIR=/root/.hybriel/cache
  64. volumes:
  65. hybriel-cache:

Branches

Latest commits

  • c49ce093|||PR WIP remove notes polling and use framework reachabilityAtlas
  • c028ac61Merge branch 'notes-pr7-kunibert' into mainAtlas
  • 9cc92bdfKeep conflict and history fixes while awaiting queued save supportAtlas
  • a5c27cb6Allow real edits back to earlier text and honor configured identAtlas
  • 15c46ced|||PR Preserve note edits, conflict bases and visible historyAtlas
  • 4c6e0bf6Merge branch 'notes13-day61' into mainAtlas
  • eb51864f|||PR Back/Forward via navigate, server drafts, Hybriel day61Atlas
  • 3537cf7eMerge branch 'vendor-day59' into mainAtlas
  • c13d188b|||PR Vendor Hybriel day59Atlas
  • 24c95433Merge branch 'notes17-ghost-note' into mainAtlas
  • ae1075b2Preserve rejected drafts during note ID adoptionAtlas
  • 383cce23|||PR Prevent saved local edits from restoring deleted notesAtlas
  • 99ca1cf6Merge branch 'vendor-day56' into mainAtlas
  • 649cef37|||PR Vendor Hybriel day56Atlas
  • aadd0abcMerge branch 'hl-standard-2' into mainAtlas
  • 52ffac9f|||PR Keyboard and reload checks for the notes gate (HL-STANDARD F21, F5)Atlas
  • 617ee8c0Merge branch 'hl-standard' into mainAtlas
  • 452458ee|||PR Type the function parameters of notes' own .hl files (HL-STANDARD L10)Atlas
  • 23758cd6Re-vendor complete Hybriel plugins and runtime to day44mre
  • 5d7cc700Backup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre