-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
88 lines (81 loc) · 2.53 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
###########################################################################
## Required Docker CE 20
## it can be started as follows
## docker stack deploy --compose-file docker-compose.yml sp2
##
###########################################################################
version: "3.1"
services:
web:
image: nginx:latest
ports:
- "80:80"
volumes:
- ${PWD}/nginx.conf:/etc/nginx/conf.d/default.conf
- ${PWD}/integrations:/etc/nginx/myfiles
networks:
- sp2net
cc-3102:
image: 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.21.2_b2128
secrets:
- source: sp2prod-config.json
target: /rlc/cc/server/app/config/config.json
depends_on:
- scheduler-3102
environment:
- DB_HOST=REPLACE_WITH_PRIVATE_IP_OF_HOST
- SCHEDULER_HOST=scheduler-3102
- APP_ENV=PROD
- APM_ENABLE=false
- APM_URL=APM URL where it has been placed
- CC_HOST=cc-3102:3002
- NS_HOST=notificationsink:3005
volumes:
- ${PWD}/config:/rlc/cc/server/app/config
- ${PWD}/logs:/rlc/cc/server/app/logs
- ${PWD}/topologies:/rlc/cc/server/dashboard/topologies
- ${PWD}/catalog:/rlc/cc/tools/deploy/catalog
networks:
- sp2net
scheduler-3102:
image: 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.21.2_b2128
secrets:
- source: sp2prod-config.json
target: /rlc/cc/server/app/config/config.json
environment:
- DB_HOST=REPLACE_WITH_PRIVATE_IP_OF_HOST
- APP_ENV=PROD
- APM_ENABLE=false
- APM_URL=APM_URL
- CC_HOST=cc-3102:3002
- NS_HOST=notificationsink:3005
volumes:
- ${PWD}/config:/rlc/cc/server/app/config
- ${PWD}/slogs:/rlc/cc/server/app/logs
- ${PWD}/topologies:/rlc/cc/server/dashboard/topologies
networks:
- sp2net
command: ["./app/scheduler/app.js"]
notificationsink:
image: 045938549113.dkr.ecr.us-east-2.amazonaws.com/notificationsink:1.19.0_b2
secrets:
- source: sp2prod-config.json
target: /opt/app/config/config.json
- source: sp2prod-alert-config.json
target: /opt/app/config/alert-config.json
environment:
- DB_HOST=REPLACE_WITH_PRIVATE_IP_OF_HOST
- APP_ENV=PROD
- PORT=3005
volumes:
- ${PWD}/notification_sink_logs:/opt/app/notification_sink_logs
- ${PWD}/config:/opt/app/config
networks:
- sp2net
secrets:
sp2prod-config.json:
external: true
sp2prod-alert-config.json:
external: true
networks:
sp2net: