kartoza / docker-postgis

Dockerfile for postgis
GNU General Public License v2.0
655 stars 316 forks source link

docker-compose commands not running the consistent 25432 port #434

Closed mbforr closed 1 year ago

mbforr commented 1 year ago

What is the bug or the crash?

After using the out of the box docker-compose method it starts a different proxy port every time. I was able to fix this by modifying this line to 25432:5432

https://github.com/kartoza/docker-postgis/blob/develop/docker-compose.yml#L24

Steps to reproduce the issue

  1. Pull the repo via GitHub
  2. Start the container with docker-compose up -d

Versions

kartoza/postgis:15-3.3

Additional context

No response

NyakudyaA commented 1 year ago

That's not a bug, if you don't specify a port like the way it is, it will randomly choose a port. We either need to update the documentation to reflect this or add the 25432 port back. Can you handle putting the 25432 port in the compose file as a PR

mbforr commented 1 year ago

Just added it here - #437