You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: Improve Docker Compose setup for local development (#182)
* chore: Improve Docker Compose setup for local development
- Separate infrastructure containers from module containers for clearer management.
- Enable easy scaling of module containers to simulate a production-like setup.
Implements: MRSPECS-103
For local development, you can run the application directly from IntelliJ IDEA with the `dev` profile. Spring Boot will automatically start the required infrastructure services (PostgreSQL, Kafka) using Docker Compose.
84
+
85
+
1. Open the project in IntelliJ IDEA
86
+
2. Run the main application class with the `dev` profile active
87
+
3. Spring Boot will automatically start infrastructure containers from `docker/infra-docker-compose.yml`
88
+
89
+
#### Manually Running the Module
90
+
91
+
Run the module locally on the default listening port (8081) with infrastructure services:
80
92
81
-
Prepare infrastructure needed for the module: PostgreSQL database.
82
-
Alternatively, you can use Docker Compose to manage the application's infrastructure.
83
93
```shell
84
-
docker compose up
94
+
# Start infrastructure services
95
+
docker compose -f docker/infra-docker-compose.yml up -d
0 commit comments