Create xibo docker external database

Hello
I’have installed xibo 2.1.2 with docker and it works fine.
But i want to use an external database. For this I have change my conf.env like this :

## CMS Configuration
...
MYSQL_HOST=sgbd-mdb-01
MYSQL_PORT=3306
MYSQL_DATABASE=xibo_cms
MYSQL_USER=xibousr
MYSQL_PASSWORD=xibopwd

CMS_SMTP_SERVER=smtp.gmail.com:587
CMS_SMTP_USERNAME=youraccount@gmail.com
CMS_SMTP_PASSWORD=yourpassword
CMS_SMTP_USE_TLS=YES
CMS_SMTP_USE_STARTTLS=YES
CMS_SMTP_REWRITE_DOMAIN=gmail.com
CMS_SMTP_HOSTNAME=gmail.com
CMS_SMTP_FROM_LINE_OVERRIDE=YES
CMS_SERVER_NAME=xibo.sdis35.fr

But now xibo doesn’t launch. What is wrong in my configuration ?
Should I have to initialise the database ? If yes how can I do this ?
Thanks for your precious answers !!!

Best regards.

Pierre

Make sure you could reach the sgbd-mdb-01 host from within the container and check your container log. Xibo should be able to create the database if it doesn’t exist.

I have execute those commands

# setsebool httpd_can_network_connect 1
# setsebool httpd_can_network_connect_db 1

And it works fine !