Wonderfall/dockerfiles

[Nextcloud] make port of DB host configurable

black-snake opened this issue · 2 comments

Hey,

first of all, thanks for the great job!

Today I tried to setup Nextcloud with your image. However, I failed. In my opinion, this is due to a non-standard port definition for my MariaDB server (I have to use port 3307 instead of 3306 as it is predetermined by Synology). It seems as if I cannot set DB_HOST=NAS:3307 (i. e. I cannot specify a deviating port by separating the host name with a colon followed by the custom MariaDB port).

Hence, could you make the DB port configurable as, e. g. as an additional environment variable?

Thank you so much.

bump

OK, according to the Nextcloud documentation it should actually work to specify the port of the db by appending it to the host (separator ':' needed). However, it didn't manage to get it running with a non-dockerized db.

Hence, it created a Docker container of MariaDB and linked it to the Docker container of Nextcloud. Now, it works fine.