Skip to content

[docker] Change default postgres port to 5433 for local dev environment #575

Description

@igoychev

Which area(s) of Podkrepi.bg are affected? (leave empty if unsure)

No response

Describe the feature you'd like to request

Currently when setting up the local dev environment, the postgres docker container is using the default port 5432 which creates problems if there is already postgres installed and running on same port. The Keycloak container fails to run in such cases.

Describe the solution you'd like

To avoid the problems, the postgres port for local development needs to be changed to 5433.
The change needs to happen on the following places:

  • .env and .env.example all places with 5432
  • docker-compose.yml for the pg-db container
  • and the difficult part for Keycloak to use the new port:
    • add another parameter for KEYCLOAK_DB_PORT in .env and .env.example
    • add the KEYCLOAK_DB_PORT to be used in docker-compose.yml line 139

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions