This project is part of a microservice architecture using Spring Boot. It connects to two PostgreSQL databases running in Docker containers: ms-employees and ms-projects.
Two PostgreSQL containers are required:
ms-employees(listening on port5433)ms-projects(listening on port5432)
Note: You can run these containers using Docker Desktop manually.
- Open Docker Desktop
- Go to the Containers tab and click on + Add Container
- Set up each container as follows:
| Property | Value |
|---|---|
| Image | postgres:15 |
| Container Name | ms-projects |
| Port | 5432:5432 |
| Environment | |
- POSTGRES_DB |
projects |
- POSTGRES_USER |
username |
- POSTGRES_PASSWORD |
password |
| Property | Value |
|---|---|
| Image | postgres:15 |
| Container Name | ms-employees |
| Port | 5433:5432 |
| Environment | |
- POSTGRES_DB |
employees |
- POSTGRES_USER |
username |
- POSTGRES_PASSWORD |
password |
⚠️ Make sure both containers are running and accessible via their respective ports.
Once the PostgreSQL containers are up and running, you can start the Spring Boot microservice locally.
- Java 17+
- Maven
- Docker Desktop (with both DB containers running)
- Eureka server running on port
8761 - Spring Cloud Config Server running on port
8888
./mvnw spring-boot:runThe service will start on port 8090.