Path: redb-route/demo/As4ConformanceDemo/deploy/docker-compose.postgres.yml Snapshot: redb-route, 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-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/demo/As4ConformanceDemo/deploy/docker-compose.postgres.yml ---- # Persistent storage in PostgreSQL, on top of docker-compose.tsak.yml: Tsak's own state (modules, contexts, audit, # dead letters, the Quartz job store) and the module's memory of received message ids live in a database of their own. # # docker compose -f docker-compose.tsak.yml -f docker-compose.postgres.yml up -d # # or once, in .env: COMPOSE_FILE=docker-compose.tsak.yml:docker-compose.postgres.yml # # The database must exist: redb creates its tables, not the database. Give the stand a database and a role of its own, # the owner of that database and nothing more. services: tsak: environment: - ConnectionStrings__Postgres=${TSAK_POSTGRES_CONNECTION:?TSAK_POSTGRES_CONNECTION required} - Tsak__Storage__Type=Redb - Tsak__Redb__Provider=postgres - Tsak__Redb__UsePro=true # The job store is in a database other nodes could share, so the scheduler is clustered: the image ships with # clustering off, for its default storage, and the worker reports the combination as fatal at startup. - Quartz__quartz.jobStore.clustered=true # With a shared store the dashboard runs in cluster mode: it signs users in against the users of the store # (roles admin / operator / viewer) and finds the worker there, under the address the worker registers. # The Tsak:Web:Nodes entries of docker-compose.tsak.yml are not read in this mode. - Tsak__Web__Mode=cluster - Tsak__Web__ServiceApiKey=${TSAK_WEB_API_KEY:?TSAK_WEB_API_KEY required} - Tsak__Cluster__NodeId=${TSAK_NODE_ID:-as4ct-1} # The address the worker registers for its management API: the container name on the compose networks, which # the dashboard in the same container and any other node or dashboard on those networks can reach. A loopback # address would reach only the container itself, and the worker warns about it at every start. - Tsak__Cluster__ApiEndpoint=http://as4ct-tsak:9090 # A resend after a restart is still a duplicate: the ids of received messages go to the same database. - Tsak__Contexts__as4-conformance__Override__Receive__DuplicateStore=redb networks: [stand, db] networks: db: name: ${TSAK_DB_NETWORK:?TSAK_DB_NETWORK required} external: true