sef-global / scholarx-backend

This is the backend of the ScholarX
MIT License
8 stars 32 forks source link

To add port mapping to the app service in docker-compose.yml file #86

Closed mayura-andrew closed 6 months ago

mayura-andrew commented 6 months ago

Description: I have added port mapping for the PostgreSQL service in the docker-compose.yml file. This allows the PostgreSQL server running inside the Docker container to be accessible from the host machine. The port inside the Docker container (5432) is mapped to the same port on the host machine. We need to ensure this implementation is working as expected.

Tasks:

  1. Test the connection to the PostgreSQL server from the host machine.
  2. Test the connection to the PostgreSQL server from other services in the docker-compose.yml file.
  3. Document the port mapping in the README.md file.

Acceptance Criteria:

The application should be able to connect to the PostgreSQL server at localhost:5432. Other services in the docker-compose.yml file should be able to connect to the PostgreSQL server at db:5432. The README.md file should include a clear explanation of the port mapping. Additional Information: Remember to stop any local PostgreSQL server running on port 5432 before starting the Docker containers to avoid a port conflict.

Related Dependencies or References: This implementation is related to the db service in the docker-compose.yml file and the database configuration in the application's environment variables.