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:
Test the connection to the PostgreSQL server from the host machine.
Test the connection to the PostgreSQL server from other services in the docker-compose.yml file.
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.
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:
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.