Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres port conflict when postgres is running on host #51

Open
MacLake opened this issue Aug 10, 2023 · 0 comments
Open

Postgres port conflict when postgres is running on host #51

MacLake opened this issue Aug 10, 2023 · 0 comments

Comments

@MacLake
Copy link
Contributor

MacLake commented Aug 10, 2023

It’s not unusual that a web devoloper runs an own postgres instance on the host, which also uses port 5432. In this case django-cms-quickstart fails to launch as it also wants to expose port 5432 on the host.

  database_default:
  #
    ports:
      - "5432:5432/tcp"  # allow your local dev env to connect to the db

Possible solutions:

  • Don’t expose the port on the host:
-  ":5432/tcp"  # Don’t allow your local dev env to connect to the db
  • Expose a non-standard port:
- "5433:5432/tcp"  # allow your local dev env to connect to the db on a non-standard port
  • Use an environment variable and let the user decide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant