-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
124 lines (116 loc) · 2.88 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3.7'
services:
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
hostname: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
networks:
- axon
axonserver:
image: axoniq/axonserver:4.1.1
container_name: axonserver
hostname: axonserver
ports:
- "8024:8024"
- "8124:8124"
- "8224:8224"
environment:
- AXONSERVER_HOSTNAME=axonserver
networks:
- axon
h2db:
container_name: h2db
build:
context: ./axon-multi-db
ports:
- "8079:8079"
- "9090:9090"
# volumes:
# - ./axon-multi-db/target/axon-multi-db-1.0-SNAPSHOT.jar:/app.jar
networks:
- axon
person:
container_name: person
build:
context: ./axon-multi-person
ports:
- "8080:8080"
environment:
- AXON_SERVER=axonserver
- H2_DB_HOST=h2db
- RABBITMQ_HOST=rabbitmq
command: >
dockerize
-wait tcp://axonserver:8124 -timeout 60s
-wait tcp://h2db:9090 -timeout 60s
java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
# volumes:
# - ./axon-multi-person/target/axon-multi-person-1.0-SNAPSHOT.jar:/app.jar
networks:
- axon
address:
container_name: address
build:
context: ./axon-multi-address
ports:
- "8081:8081"
environment:
- AXON_SERVER=axonserver
- H2_DB_HOST=h2db
- RABBITMQ_HOST=rabbitmq
command: >
dockerize
-wait tcp://axonserver:8124 -timeout 60s
-wait tcp://h2db:9090 -timeout 60s
java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
# volumes:
# - ./axon-multi-address/target/axon-multi-address-1.0-SNAPSHOT.jar:/app.jar
networks:
- axon
saga:
container_name: saga
build:
context: ./axon-multi-saga
ports:
- "8082:8082"
environment:
- AXON_SERVER=axonserver
- H2_DB_HOST=h2db
- RABBITMQ_HOST=rabbitmq
command: >
dockerize
-wait tcp://axonserver:8124 -timeout 60s
-wait tcp://h2db:9090 -timeout 60s
java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
# volumes:
# - ./axon-multi-saga/target/axon-multi-saga-1.0-SNAPSHOT.jar:/app.jar
networks:
- axon
projection:
container_name: projection
build:
context: ./axon-multi-projection
ports:
- "8083:8083"
environment:
- AXON_SERVER=axonserver
- H2_DB_HOST=h2db
- RABBITMQ_HOST=rabbitmq
command: >
dockerize
-wait tcp://axonserver:8124 -timeout 60s
-wait tcp://h2db:9090 -timeout 60s
java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
# volumes:
# - ./axon-multi-projection/target/axon-multi-projection-1.0-SNAPSHOT.jar:/app.jar
networks:
- axon
networks:
axon:
driver: bridge