Run XWiki in Docker, use database server on host system - Possible?

Hi,

is it possible to run XWiki in a Docker container but use the database server running on the host system (a Plesk server in my case)?

I tried it with MariaDB 10.1.48 and PostgreSQL 10.17 by setting the DB_HOST environment variable to the ip address of my docker0 network adapter.
But I did not get it to work.

I used 13-mysql-tomcat and 13-postgres-tomcat.

When I run MariaDB in a Docker container, too, it works fine.
I tried that.

So:
Is this not possible or am I doing something wrong?

Thanks in advance!

Best regards
Alexander

yes! I don’t see anything preventing that. You just need to make sure your host is available from within the docker container.