Path: redb/redb.Templates/templates/redb-bff/deploy/docker-compose.tsak.yml Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Templates/templates/redb-bff/deploy/docker-compose.tsak.yml ---- # The backend as a module on a Tsak worker, and the web server. The Tsak stack image (worker and # dashboard in one container) loads RedbBff.tpkg from deploy/output. The worker's default redb is SQLite, # so nothing else is needed. # # From the project folder: # cp deploy/.env.example deploy/.env # then fill in the Tsak values, BFF_SERVICE_KEY, APP_ADMIN_PASSWORD # pwsh deploy/pack-tpkg.ps1 # -> deploy/output/RedbBff.tpkg # docker compose -f deploy/docker-compose.tsak.yml up -d --build # # Then open http://localhost:8080. Dashboard: http://localhost:8085 (admin and TSAK_WEB_ADMIN_PASSWORD). services: backend: image: ghcr.io/redbase-app/redb-tsak-stack:${TSAK_VERSION:-4.8.0-net10} restart: unless-stopped ports: - "127.0.0.1:9090:9090" # worker API - "127.0.0.1:8085:8085" # dashboard environment: # The worker's default (unnamed) redb, the one the module works in. The same settings as the own # host: Pro, change tracking, the PVT prefilter. The props cache stays off; to turn it on add # Tsak__Redb__EnablePropsCache=true. - Tsak__Redb__UsePro=true - Tsak__Redb__PropsSaveStrategy=ChangeTracking - Tsak__Redb__EnablePvtPrefilter=true - Tsak__Modules__AssemblyPaths__0=/app/modules - Tsak__Cluster__ApiEndpoint=http://backend:9090 # No Tsak__Cluster__NodeId: a node is named after its container's host name, so each replica of # `docker compose up --scale` is a node of its own. A fixed id suits one instance or a StatefulSet only. # The worker's API requires a key; the dashboard in the same container calls it with the service key. # The worker stores only the key's hash: HMAC-SHA256 of the key with Tsak:Auth:Secret (see .env.example). - Tsak__Auth__Enabled=true - Tsak__Auth__Secret=${TSAK_AUTH_SECRET:?TSAK_AUTH_SECRET required} - Tsak__Auth__Keys__0__Id=svc-tsak-web - Tsak__Auth__Keys__0__KeyHash=${TSAK_WEB_API_KEY_HASH:?TSAK_WEB_API_KEY_HASH required} - Tsak__Auth__Keys__0__Name=tsak-web-dashboard - Tsak__Auth__Keys__0__Roles=admin - Tsak__Web__AdminLogin=admin - Tsak__Web__AdminPassword=${TSAK_WEB_ADMIN_PASSWORD:?TSAK_WEB_ADMIN_PASSWORD required} - Tsak__Web__ServiceApiKey=${TSAK_WEB_API_KEY:?TSAK_WEB_API_KEY required} - Tsak__Web__Mode=cluster # The module's settings: the Override layer of its context, the same keys the own host reads. - Tsak__Contexts__redbbff__Override__Api__Host=0.0.0.0 - Tsak__Contexts__redbbff__Override__Api__ServiceKey=${BFF_SERVICE_KEY:?BFF_SERVICE_KEY required} volumes: - ./output:/app/modules web: build: context: .. dockerfile: RedbBff.Web/Dockerfile ports: - "8080:8080" environment: Backend__BaseUrl: "http://backend:5093/" Backend__ServiceKey: ${BFF_SERVICE_KEY:?BFF_SERVICE_KEY required} Web__Users__admin__Password: ${APP_ADMIN_PASSWORD:?APP_ADMIN_PASSWORD required} depends_on: - backend