PaimaStudios / paima-game-templates

Paima Engine Game Templates for developers.
https://paimastudios.com
MIT License
11 stars 8 forks source link

Warn if port 5432 is already in use #52

Open SebastienGllmt opened 11 months ago

SebastienGllmt commented 11 months ago

Right now for the docker-comopose.yml files, we just always use port 5432. Two problems:

  1. Probably the value should come from the .env file
  2. If the user already has a database running on their machine (which runs on 5432 by default), Paima will just silently connect to that instead of the docker database. Possibly we can check this in database:up

See pg_isready mentioned in the templates for maybe a path for this