Closed aangelone2 closed 11 months ago
Note: the reason for switching to 5433 is to avoid conflicts with the active postgres service on the host machine. I don't know if there are better ways to achieve this goal.
Any suggestion from @mfranzon would be welcome :)
We wish to set the PostgreSQL port to
5433
. Thedirective in the
docker.compose
file changes the port the PostgreSQL container is listening on in the container (theport
directive only changes the exposed port to the host, and not the one the container will communicate with on thedocker-compose
network).However, this setting causes a conflict with the
healthcheck
directive, which is necessary to avoid the server crashing the first time the container ensemble is started (due to PostgreSQL starting, stopping, and restarting again after the DB is initialized; from the second time on initialization is skipped, and the healthcheck is not necessary).After this is fixed, one should set
POSTGRESQL_PORT=5433
directive infractal_server.env
.