docker-compose up fails when there's a running postgres on the host
( how )% dc up
Recreating incommon-docker_postgres_1 ... error
ERROR: for incommon-docker_postgres_1 Cannot start service postgres: driver failed programming external connectivity on endpoint incommon-docker_postgres_1 (d396e81894cec5a64e9a7c3973942c0a36f0db25adfdc85c369f4db6ce0aeed3): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use
ERROR: for postgres Cannot start service postgres: driver failed programming external connectivity on endpoint incommon-docker_postgres_1 (d396e81894cec5a64e9a7c3973942c0a36f0db25adfdc85c369f4db6ce0aeed3): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use
ERROR: Encountered errors while bringing up the project.
Since docker tries to bind on 0.0.0.0
, and there's an existing postgres running on the host, the binding fails. Can we bind on the specific IP of the postgres container?