I can't specify different database port when starting docker image
Description
I copy here the issue framasoft/joinmobilizon/docker#3 (closed) because I'm not sure it was in the right place
I want to start a Mobilizon instance using the Docker image and a managed Postgresql database.
My database doesn't use the standard 5432 port, so I wanted to change it when starting the image. I didn't find how to change it in the documentation, but I saw in source code that the environment var MOBILIZON_DATABASE_PORT
seems to be the one to use for that.
Steps to Reproduce
Start the image with this command
docker run -p 4000:4000 -e MOBILIZON_DATABASE_HOST=127.0.0.1 -e MOBILIZON_DATABASE_PORT=1234 -e MOBILIZON_DATABASE_USERNAME=mobilizon -e MOBILIZON_DATABASE_PASSWORD=pwd1234 framasoft/mobilizon
Expected behaviour:
Mobilizon should start using the Postgresql database on port 1234
Actual behaviour:
I have this error :
127.0.0.1:5432 - no response
It seems that Mobilizon uses the default port forPostgresql
Versions
I had the error with Docker image 2.1.0, and still the same issue today with 3.0.0