Forum OpenACS Development: Re: OpenACS/NaviServer docker images using s6-overlay

Collapse
Posted by Vlad V on

Gustaf, thanks.

You are right with your assumption.

The docker-compose file contains configuration parameter for postgres:

...
ports:
  - 5432:5432
...

From docs https://docs.docker.com/compose/compose-file/compose-file-v3/#ports the first value is host port. If it is busy the postgres will not run.

Probably "..address already in use for docker-compose" from https://stackoverflow.com/questions/47069540/docker-compose-postgres-5432-bind-address-already-in-use-error may become a solution ?

In near time I will modify docker-compose file that the first port value read from variable (for exclude bind address conflicts on local computer).

Collapse
Posted by Vlad V on

Done. For postgres from docker-compose specified just the container port - 5432 (an ephemeral host port is chosen for the host port).