Skip to content

Commit

Permalink
added messaging queue dependencies and image to dev compose
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpapwinter committed Nov 26, 2024
1 parent 11f16c7 commit 6157d9e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
19 changes: 17 additions & 2 deletions docker-compose.db.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.8'

services:
postgres:
Expand All @@ -22,6 +21,22 @@ services:
volumes:
- mongo_data:/data/db

rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
volumes:
- rabbitmq_data:/var/lib/rabbitmq
- rabbitmq_log:/var/log/rabbitmq


volumes:
postgres_data:
mongo_data:
mongo_data:
rabbitmq_data:
rabbitmq_log:
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
import io.mongock.api.annotations.ChangeUnit;
import io.mongock.api.annotations.Execution;
import io.mongock.api.annotations.RollbackExecution;
import org.springframework.context.annotation.Profile;
import org.springframework.data.mongodb.core.MongoTemplate;

import java.time.LocalDate;
import java.util.Arrays;
import java.util.List;

@Profile("dev")
@ChangeUnit(id = "seed-logged-orders", order = "001", author = "johnpapwinter")
public class V1_SeedData {
public class V0_SeedDevData {

@Execution
public void changeSet(MongoTemplate mongoTemplate) {
Expand Down
4 changes: 4 additions & 0 deletions orders/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
Expand Down

0 comments on commit 6157d9e

Please sign in to comment.