-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
81 lines (74 loc) · 1.83 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
81 lines (74 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
unit-tests:
build:
context: .
dockerfile: test/Dockerfile.test
command: ["./mvnw", "test"]
volumes:
- .:/app
- ~/.m2:/root/.m2
networks:
- backend
integration-tests:
build:
context: .
dockerfile: test/Dockerfile.test
command: ["./mvnw", "verify", "-P", "integration-test"]
volumes:
- .:/app
- ~/.m2:/root/.m2
environment:
- AWS_DYNAMODB_ENDPOINT=http://172.20.0.10:8000/
- SPRING_KAFKA_BOOTSTRAP_SERVERS=event-log:29092
depends_on:
- message-queue
- distributed-storage
- distributed-cache
- event-log
networks:
- backend
message-queue:
image: rabbitmq:3.12-management
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
networks:
- backend
distributed-storage:
image: amazon/dynamodb-local:latest
command: "-jar DynamoDBLocal.jar -sharedDb -inMemory"
networks:
backend:
ipv4_address: 172.20.0.10
distributed-cache:
image: redis:7.0
command: redis-server --save ""
networks:
- backend
event-log:
image: confluentinc/cp-kafka:7.4.0
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://172.20.0.11:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
depends_on:
- zookeeper
networks:
backend:
ipv4_address: 172.20.0.11
zookeeper:
image: confluentinc/cp-zookeeper:7.4.0
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
networks:
- backend
networks:
backend:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16