Adds LetterHtml.Render, a pure composer mirroring the FE letter canvas'
class vocabulary, behind two ExcludeFromDescription()'d endpoints
(GET /brief/preview, GET /admin/org-template/{subOrgId}/preview).
Auto-resolvable placeholders pull from seed/case data; unresolved
manual ones render as "[NOG IN TE VULLEN: label]". A sent brief
archives its composed HTML (BriefEntity.ArchivedHtml) so a later
org-template republish never changes it. FE gets a hand-written fetch
adapter (text/html, not JSON) and a "Voorbeeld" button that opens the
preview in a new tab.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
44 lines
1.7 KiB
YAML
44 lines
1.7 KiB
YAML
# ponytail: dev-server images (not multi-stage prod builds) — this is a demo.
|
|
# `docker compose up` → app at http://localhost:4200, Swagger at http://localhost:5000/swagger
|
|
services:
|
|
api:
|
|
image: mcr.microsoft.com/dotnet/sdk:10.0
|
|
working_dir: /src
|
|
command: dotnet run --project src/BigRegister.Api --urls http://+:5000
|
|
environment:
|
|
- ASPNETCORE_ENVIRONMENT=Development
|
|
volumes:
|
|
# ':z' relabels for SELinux (Fedora/RHEL); harmless on other hosts.
|
|
# WP-22: no separate volume needed for the SQLite file — `dotnet run` sets
|
|
# its cwd to the project dir (src/BigRegister.Api), which this bind mount
|
|
# already covers, so bigregister.db lands on the host and survives
|
|
# `docker compose restart api` / `down` + `up` for free (gitignored).
|
|
- ./backend:/src:z
|
|
- api-bin:/src/src/BigRegister.Api/bin
|
|
- api-obj:/src/src/BigRegister.Api/obj
|
|
# WP-25: LetterHtml.Render inlines public/letter.css (the FE⇄BE letter
|
|
# contract, repo-root sibling of backend/) — mounted here so the same
|
|
# walk-up-from-the-assembly lookup that works for `dotnet run`/tests also
|
|
# resolves inside this container, whose bind mount otherwise only sees backend/.
|
|
- ./public:/src/public:z
|
|
ports:
|
|
- '5000:5000'
|
|
|
|
web:
|
|
image: node:24
|
|
working_dir: /app
|
|
# Uses the committed generated client (no codegen at startup); proxies /api → api container.
|
|
command: sh -c "npm ci && npx ng serve --host 0.0.0.0 --proxy-config proxy.conf.docker.json"
|
|
volumes:
|
|
- ./:/app:z
|
|
- web-modules:/app/node_modules
|
|
ports:
|
|
- '4200:4200'
|
|
depends_on:
|
|
- api
|
|
|
|
volumes:
|
|
api-bin:
|
|
api-obj:
|
|
web-modules:
|