Repository navigation
bonita: do not publish database port and require passwords in compose example - #2725
Merged
tianon merged 1 commit intoNov 30, 2026
Conversation
… compose example Bonita reaches the database over the Compose network, so the example no longer publishes the database port. The database superuser, bonita and business_data role, runtime administrator and platform administrator passwords now come from the environment (for example a .env file next to compose.yaml), and Compose refuses to start until they are set, instead of shipping fixed example values. The bonitasoft/bonita-postgres image creates the bonita and business_data roles with the passwords the bonita container connects with. Also update the example to Bonita 2026.2 and bonitasoft/bonita-postgres:16.16.
tianon
approved these changes
Nov 30, 2026
tianon
left a comment
Member
There was a problem hiding this comment.
This is fine with me, but a couple notes:
- I don't love the custom image we're pointing to here, although I get it (and it's very, very pre-existing now)
- this makes the "example" a bit harder to test out as-is, but that's fair
- #2721 is related and might be interesting to you
- we never intended for any of the compose snippets in our docs to be usable as-is for real production use cases -- maybe we need to do something more explicit about that 😞
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bonita compose example published the database port on every host interface and shipped fixed example passwords.
Changes:
POSTGRES_PASSWORD,BONITA_RUNTIME_ADMIN_PASSWORDandPLATFORM_PASSWORDrequired (${VAR:?...}): Compose refuses to start until they are set, for example in a.envfile next tocompose.yamlcontent.mdto explain how to set them and why the database port stays closedbonitasoft/bonita-postgres:16.16, the current image of the PostgreSQL 16 line it supportsTested with
docker compose up:bpmThanks to ozgun kultekin, wakefield (wakefield.co), @oz9un, for reporting this and proposing the change.