-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (62 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
69 lines (62 loc) · 1.38 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
version: "3.4"
services:
mongodb:
image: mongo
networks:
- cqrs_network
axonserver:
image: axoniq/axonserver
ports:
- "9024:8024"
networks:
- cqrs_network
ngrok1:
image: wernight/ngrok
ports:
- "5040:4040"
networks:
- cqrs_network
environment:
- NGROK_PROTOCOL=http
- NGROK_PORT=commands:8080
- NGROK_DEBUG=false
ngrok2:
image: wernight/ngrok
ports:
- "5041:4040"
networks:
- cqrs_network
environment:
- NGROK_PROTOCOL=http
- NGROK_PORT=projection-mongo:8082
- NGROK_DEBUG=false
commands:
build:
context: commands
dockerfile: src/main/docker/Dockerfile
args:
JAR_FILE: target/app.jar
SCRIPT_DIR: src/main/docker
ports:
- "9080:8080"
environment:
- WAIT_FOR_IT=mongodb:27017 ngrok1:4040 axonserver:8024
- JAVA_OPTS=-Xmx256m -Xms128m -Dspring.profiles.active=docker-compose
networks:
- cqrs_network
projection-mongo:
build:
context: projection-mongo
dockerfile: src/main/docker/Dockerfile
args:
JAR_FILE: target/app.jar
SCRIPT_DIR: src/main/docker
ports:
- "9081:8080"
environment:
- WAIT_FOR_IT=mongodb:27017 ngrok2:4040 axonserver:8024
- JAVA_OPTS=-Xmx256m -Xms128m -Dspring.profiles.active=docker-compose
networks:
- cqrs_network
networks:
cqrs_network: