forked from bcgov/jag-file-submission
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (81 loc) · 2.96 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
version: "3.7"
services:
#############################################################################################
### EFILING FRONTEND ###
#############################################################################################
efiling-frontend:
# need stdin_open:true because there is an issue with container being auto exited after startup with react-scripts 3.4.1
stdin_open: true
container_name: efiling-frontend
build:
context: ./src/frontend
args:
- SERVICE_NAME=efiling-frontend
ports:
- 3000:3000
#############################################################################################
### EFILING DEMO ###
#############################################################################################
efiling-demo:
# need stdin_open:true because there is an issue with container being auto exited after startup with react-scripts 3.4.1
stdin_open: true
container_name: efiling-demo
build:
context: ./src/frontend
args:
- SERVICE_NAME=efiling-demo
ports:
- 3001:3000
#############################################################################################
### Efiling api backend app ###
#############################################################################################
efiling-api:
build:
context: ./src/backend
args:
- SERVICE_NAME=efiling-api
ports:
- "8080:8080"
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=admin
- NAVIGATION_BASE_URL=https://httpbin.org/
- NAVIGATION_EXPIRYTIME=10
networks:
- fisu-net
#############################################################################################
### REDIS SERVER ###
#############################################################################################
redis:
container_name: redis
image: redis
command: redis-server --requirepass admin
ports:
- "6379:6379"
volumes:
- data-redis:/data
restart: always
networks:
- fisu-net
#############################################################################################
### RABBIT MQ SERVER ###
#############################################################################################
rabbitmq:
image: rabbitmq:3.7.15-management
container_name: rabbitmq
hostname: rabbitmq
ports:
- 5672:5672
- 15672:15672
volumes:
- data-rabbit:/var/lib/rabbitmq/mnesia/rabbit@app-rabbitmq:cached
restart: always
networks:
- fisu-net
volumes:
data-redis:
data-rabbit:
networks:
fisu-net:
driver: "bridge"