You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bonita/content.md
+24-20Lines changed: 24 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Bonita is an open-source business process management and workflow suite created
14
14
$ docker run --name bonita -d -p 8080:8080 %%IMAGE%%
15
15
```
16
16
17
-
This will start a container running [Bonita runtime](https://documentation.bonitasoft.com/bonita/2022.1/tomcat-bundle): a Tomcat bundle with Bonita Engine + Bonita Portal. With no environment variables specified, it's as if you have launched the bundle on your host using startup.{sh|bat} (with security hardening on REST and HTTP APIs, cf Security part). Bonita uses a H2 database here.
17
+
This will start a container running [Bonita runtime](https://documentation.bonitasoft.com/bonita/latest/tomcat-bundle): a Tomcat bundle with Bonita Engine + Bonita Portal. With no environment variables specified, it's as if you have launched the bundle on your host using startup.{sh|bat} (with security hardening on REST and HTTP APIs, cf Security part). Bonita uses a H2 database here.
18
18
19
19
You can access the Bonita Portal on http://localhost:8080/bonita and login using the default credentials: install / install
20
20
@@ -28,16 +28,16 @@ You can work with either a PostgreSQL Container, or PostgreSQL as an installed s
28
28
### PostgreSQL Container
29
29
30
30
31
-
From Bonita 2022.1 onwards, the Bonita docker image does not include configuration scripts for Postgres
31
+
From Bonita 2022.1 onwards, the Bonita docker image does not include configuration scripts to automatically create databases and users anymore.
32
32
33
33
34
34
Therefore the PostgreSQL container needs to be configured to work with Bonita before starting the Bonita container.
35
-
The configuration of a PostgreSQL database to work with Bonita is described in detail in the xref:database-configuration.adoc[database configuration page]. +
35
+
The configuration of a PostgreSQL database to work with Bonita is described in details in the [database configuration page](https://documentation.bonitasoft.com/bonita/latest/runtime/database-configuration#postgres_setup). +
36
36
Alternatively, Bonita provides a preconfigured [PostgreSQL image](https://hub.docker.com/r/bonitasoft/bonita-postgres) on docker-hub. +
37
37
You can run the image with the following command:
38
38
39
39
```
40
-
docker run --name mydbpostgres -h <hostname> -v <your-bonita-license-folder>:/opt/bonita_lic/ -d bonitasoft/bonita-postgres:12.6
40
+
docker run --name mydbpostgres -h <hostname> -d bonitasoft/bonita-postgres:12.6
41
41
```
42
42
43
43
This image is built from the following [GitHub repository](https://github.com/Bonitasoft-Community/bonita-database-docker/tree/main/postgres/12), which can be further adapted/customized to suit your needs.
* Replace `<hostname>` with the one used in the licence generation command
52
52
* leave double `$$` untouched
53
53
54
-
Run `docker-compose up`, wait for it to initialize completely, and visit `+http://localhost:8080+`, or `+http://host-ip:8080+` (as appropriate).
55
54
56
55
### PostgreSQL as an installed service
57
56
58
-
If you don't want to run your database in a docker container, the following file `env.txt` needs to be configured and provided to the docker run command:
57
+
If you don't want to run your database in a docker container, the following `env.txt` file needs to be configured and provided to the docker run command:
Now you can access the Bonita Runtime on localhost:8080/bonita and login using: tech_user / secret
83
82
84
-
## Where data is stored
83
+
## Where data are stored
85
84
86
85
Bonita uses tomcat that writes file to a working directory and a temp directory.
87
86
@@ -145,7 +144,7 @@ This optional environment variable allows to activate/deactivate writing Tomcat
145
144
In practice, it is only useful when mounting a volume to the aforementioned directory. Default value is *false*.
146
145
147
146
### ACCESSLOGS_PATH
148
-
If `ACCESSLOGS_FILES_ENABLED=true`, this optional environment variable overrides the default path to of the access log file.
147
+
If `ACCESSLOGS_FILES_ENABLED=true`, this optional environment variable overrides the default path to the access log files.
149
148
Default value is */opt/bonita/logs*.
150
149
151
150
### ACCESSLOGS_PATH_APPEND_HOSTNAME
@@ -157,7 +156,7 @@ If `ACCESSLOGS_FILES_ENABLED=true`, this optional environment variable allows to
157
156
158
157
### HTTP_MAX_THREADS
159
158
This optional environment variable allows to specify the maximum Http thread number Tomcat will use to serve HTTP/1.1 requests. Directly modifies the *maxThreads* parameter in the *server.xml* file of the Tomcat inside the docker container.
160
-
More information on the usefulness of this parameter can be found https://tomcat.apache.org/tomcat-9.0-doc/config/http.html[here]. Default value is *20*.
159
+
More information on the usefulness of this parameter can be found [here](https://tomcat.apache.org/tomcat-9.0-doc/config/http.html). Default value is *20*.
161
160
162
161
### JAVA_OPTS
163
162
This optional environment variable is used to customize JAVA_OPTS. The default value is -Xms1024m -Xmx1024m -XX:MaxPermSize=256m.
@@ -171,7 +170,7 @@ These variables are optional, used in conjunction to configure the bonita image
171
170
172
171
### DB_NAME, DB_USER, DB_PASS
173
172
174
-
These variables are used in conjunction to create a new user, set that user's password, and create the bonita database.
173
+
These variables are used in conjunction to define how Bonita should access its database for internal functioning.
175
174
176
175
`DB_NAME` default value is bonitadb.
177
176
@@ -181,7 +180,8 @@ These variables are used in conjunction to create a new user, set that user's pa
181
180
182
181
### BIZ_DB_NAME, BIZ_DB_USER, BIZ_DB_PASS
183
182
184
-
These variables are used in conjunction to create a new user, set that user's password and create the bonita business database.
183
+
184
+
These variables are used in conjunction to define how Bonita should access the [Business Data](https://documentation.bonitasoft.com/bonita/latest/data/define-and-deploy-the-bdm) database.
185
185
186
186
`BIZ_DB_NAME` default value is businessdb.
187
187
@@ -192,34 +192,38 @@ These variables are used in conjunction to create a new user, set that user's pa
192
192
193
193
## Logger configuration
194
194
195
+
**Since 2022.1**
196
+
195
197
The logger can be configured by mounting a volume on folder `/opt/bonita/conf/logs` containing the configuration files.
For updating from a version before 7.10.0, please refere to the documention
224
+
For updating from a version before 7.10.0, please refer to the [documentation](https://documentation.bonitasoft.com/bonita/latest/version-update/migrate-from-an-earlier-version-of-bonita)
221
225
222
-
- Stop the container to perform a backup
226
+
- Stop the container to perform a database backup
223
227
224
228
```console
225
229
$ docker stop bonita
@@ -239,7 +243,7 @@ For updating from a version before 7.10.0, please refere to the documention
0 commit comments