-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
73 lines (73 loc) · 2.19 KB
/
docker-compose.yml
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
version: "3.8"
services:
db:
image: postgres:latest
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: hz-demo
zookeeper:
image: bitnami/zookeeper:latest
environment:
ALLOW_ANONYMOUS_LOGIN: "yes"
kafka:
image: bitnami/kafka:latest
depends_on:
- zookeeper
environment:
ALLOW_PLAINTEXT_LISTENER: "yes"
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
management-center:
image: hazelcast/management-center:5.0-BETA-2
ports:
- "8080:8080"
volumes:
- ./hz-common/target/classes:/opt/classpath
environment:
HZ_MC_CLUSTER: dev
HZ_MC_MEMBERS: hz-member
MC_CLASSPATH: /opt/classpath
hz-member:
image: hazelcast/hazelcast:5.0-BETA-2
ports:
- "5701-5800:5701"
volumes:
- ./hz-member-config.yaml:/opt/hz-member-config.yaml
- ./stock-service/target/classes:/opt/hazelcast/ext/stock-service
- ./hz-common/target/classes:/opt/hazelcast/ext/hz-common
- /home/erosb/.m2/repository/org/apache/kafka/connect-json/2.2.2/connect-json-2.2.2.jar:/opt/hazelcast/ext/connect-json-2.2.2.jar
environment:
JAVA_OPTS: "-Dhazelcast.config=/opt/hz-member-config.yaml -Dhazelcast.slow.operation.detector.stacktrace.logging.enabled=true"
CLASSPATH: "/opt/hazelcast/ext/hz-common:/opt/hazelcast/ext/stock-service:/opt/hazelcast/ext/connect-json-2.2.2.jar"
stock-service:
image: openjdk:11
ports:
- "8082:8082"
volumes:
- ./stock-service/target/stock-service-0.0.1-SNAPSHOT.jar:/opt/stock-service.jar
entrypoint: "java -jar /opt/stock-service.jar"
depends_on:
- kafka
- hz-member
- db
- payment-service
webshop:
image: openjdk:11
ports:
- "8585:8585"
volumes:
- ./webshop/target/webshop-0.0.1-SNAPSHOT.jar:/opt/webshop.jar
entrypoint: "java -jar /opt/webshop.jar"
depends_on:
- kafka
payment-service:
image: openjdk:11
ports:
- "8081:8081"
volumes:
- ./payment-service/target/payment-service-0.0.1-SNAPSHOT.jar:/opt/payment-service.jar
entrypoint: "java -jar /opt/payment-service.jar"
depends_on:
- kafka