# How can I update files from the bonita docker image (i.e. logging.properties)

**URL:** <https://community.ofelia.com/t/how-can-i-update-files-from-the-bonita-docker-image-i-e-logging-properties/10888>\
**Category:** Q&A\
**Created:** [25 August 2021 12:15 UTC](https://community.ofelia.com/t/how-can-i-update-files-from-the-bonita-docker-image-i-e-logging-properties/10888 "2021-08-25T12:15:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [25 August 2021 12:15 UTC](https://community.ofelia.com/t/how-can-i-update-files-from-the-bonita-docker-image-i-e-logging-properties/10888/1 "2021-08-25T12:15:46Z")

</div>

Hello,

can you please advise on how to update files (i.e. logging.properties) in Bonita running in the official docker container?

Ideally when I stop the container and I start a new one I'd like the update to the file being persisted.

Thank you

&nbsp;

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [26 August 2021 12:59 UTC](https://community.ofelia.com/t/how-can-i-update-files-from-the-bonita-docker-image-i-e-logging-properties/10888/2 "2021-08-26T12:59:16Z")

</div>

Hello.

For configuration files not stored in the database (e.g. logging.properties), right now, the way to configure them is by using a volume.

For the case of the logging.properties, there is an env property that allows changing its path:  
https://documentation.bonitasoft.com/bonita/2021.1/bonita-docker-installation#\_bonita\_server\_logging\_file\_bonita\_setup\_logging\_file

So it would mean to change the logging properties configuration:

- Starts the image with a volume containing&nbsp;&nbsp;`logging.properties` e.g. with mount point&nbsp;/opt/custom-config/
- Set the env property&nbsp;BONITA\_SERVER\_LOGGING\_FILE tp that path. e.g. -e BONITA\_SERVER\_LOGGING\_FILE=/opt/custom-config/logging.properties
- The volume can be created in a persistent fashion:&nbsp;https://docs.docker.com/storage/volumes/

For other config files, when there are no specific env properties, you can use a custom configuration script:

- Create a script that copies/modify configuration files of the tomcat that you want to change
- Put that script in a volume
- mount that volume in /opt/custom-config.d/
- It will be exected at container first startup

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [27 August 2021 15:28 UTC](https://community.ofelia.com/t/how-can-i-update-files-from-the-bonita-docker-image-i-e-logging-properties/10888/3 "2021-08-27T15:28:55Z")

</div>

Thank you,  
I created a local file /home/ubuntu/custom-config/logging.properties with some logging configuration, then  
I tried this command:

docker run --name bonita -v /home/ubuntu/custom-config:/opt/custom-config -e “BONITA\_SERVER\_LOGGING\_FILE=/opt/custom-config/logging.properties” -d -p 8081:8080 bonita

The volume is mounted correctly, but the log files have always the same verbosity.

What am I doing wrong?  
Thanks,
