forked from onc-healthit/lantern-back-end
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
140 lines (133 loc) · 4.93 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: '3'
services:
postgres:
image: postgres:11.8
volumes:
- pgdata:/var/lib/postgresql/data
- ./db/sql/dbsetup.sql:/docker-entrypoint-initdb.d/dbsetup.sql
- ./db/sql/dbusersetup.sql:/docker-entrypoint-initdb.d/dbusersetup.sql
environment:
- POSTGRES_PASSWORD=${LANTERN_DBPASSWORD}
- POSTGRES_USER=${LANTERN_DBUSER}
- POSTGRES_DB=${LANTERN_DBNAME}
command:
-csynchronous_commit=off
lantern-mq:
image: rabbitmq:3-management
volumes:
- ./lanternmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
- ./lanternmq/definitions.json:/etc/rabbitmq/definitions.json:ro
- rabbitmqdata:/var/lib/rabbitmq
endpoint_manager:
build:
args:
cert_dir: ./certs
context: ./endpointmanager
depends_on:
- lantern-mq
- postgres
restart: on-failure
environment:
- LANTERN_CHPLAPIKEY=${LANTERN_CHPLAPIKEY}
- LANTERN_DBHOST=${LANTERN_DBHOST}
- LANTERN_DBPORT=${LANTERN_DBPORT}
- LANTERN_DBUSER=${LANTERN_DBUSER}
- LANTERN_DBPASSWORD=${LANTERN_DBPASSWORD}
- LANTERN_DBSSLMODE=${LANTERN_DBSSLMODE}
- LANTERN_DBNAME=${LANTERN_DBNAME}
- LANTERN_QUSER=${LANTERN_QUSER}
- LANTERN_QPASSWORD=${LANTERN_QPASSWORD}
- LANTERN_QHOST=${LANTERN_QHOST}
- LANTERN_QPORT=${LANTERN_QPORT}
- LANTERN_QUERY_NUMWORKERS=${LANTERN_QUERY_NUMWORKERS}
- LANTERN_CAPQUERY_QRYINTVL=${LANTERN_CAPQUERY_QRYINTVL}
- LANTERN_EXPORT_NUMWORKERS=${LANTERN_EXPORT_NUMWORKERS}
- LANTERN_EXPORT_DURATION=${LANTERN_EXPORT_DURATION}
- LANTERN_PRUNING_THRESHOLD=${LANTERN_PRUNING_THRESHOLD}
volumes:
- ./scripts/wait-for-it.sh:/etc/lantern/wait-for-it.sh
- ./scripts/populatedb.sh:/etc/lantern/populatedb.sh
- ./scripts/populatedb_prod.sh:/etc/lantern/populatedb_prod.sh
- ./scripts/populateEndpoints.sh:/etc/lantern/populateEndpoints.sh
- ./resources/prod_resources/:/etc/lantern/resources
- "./VERSION:/etc/lantern/VERSION:ro"
- jsonexport:/etc/lantern/exportfolder
command: /etc/lantern/wait-for-it.sh lantern-mq:5672 -- /etc/lantern/wait-for-it.sh postgres:5432 -- ./main
capability_querier:
build:
args:
cert_dir: ./certs
context: ./capabilityquerier
depends_on:
- lantern-mq
- postgres
restart: on-failure
environment:
- LANTERN_QUSER=${LANTERN_QUSER}
- LANTERN_QPASSWORD=${LANTERN_QPASSWORD}
- LANTERN_QHOST=${LANTERN_QHOST}
- LANTERN_QPORT=${LANTERN_QPORT}
- LANTERN_QUERY_NUMWORKERS=${LANTERN_QUERY_NUMWORKERS}
- LANTERN_DBHOST=${LANTERN_DBHOST}
- LANTERN_DBPORT=${LANTERN_DBPORT}
- LANTERN_DBUSER=${LANTERN_DBUSER}
- LANTERN_DBPASSWORD=${LANTERN_DBPASSWORD}
- LANTERN_DBSSLMODE=${LANTERN_DBSSLMODE}
- LANTERN_DBNAME=${LANTERN_DBNAME}
- LANTERN_PRUNING_THRESHOLD=${LANTERN_PRUNING_THRESHOLD}
volumes:
- ./scripts/wait-for-it.sh:/etc/lantern/wait-for-it.sh
- "./VERSION:/etc/lantern/VERSION:ro"
command: /etc/lantern/wait-for-it.sh lantern-mq:5672 -- /etc/lantern/wait-for-it.sh postgres:5432 -- ./main
capability_receiver:
build:
args:
cert_dir: ./certs
context: ./capabilityreceiver
depends_on:
- lantern-mq
- postgres
restart: on-failure
environment:
- LANTERN_DBHOST=${LANTERN_DBHOST}
- LANTERN_DBPORT=${LANTERN_DBPORT}
- LANTERN_DBUSER=${LANTERN_DBUSER}
- LANTERN_DBPASSWORD=${LANTERN_DBPASSWORD}
- LANTERN_DBSSLMODE=${LANTERN_DBSSLMODE}
- LANTERN_DBNAME=${LANTERN_DBNAME}
- LANTERN_QUSER=${LANTERN_QUSER}
- LANTERN_QPASSWORD=${LANTERN_QPASSWORD}
- LANTERN_QHOST=${LANTERN_QHOST}
- LANTERN_QPORT=${LANTERN_QPORT}
volumes:
- ./resources/prod_resources/CHPLProductMapping.json:/etc/lantern/resources/CHPLProductMapping.json
- ./resources/prod_resources/CHPLProductsInfo.json:/etc/lantern/resources/CHPLProductsInfo.json
- ./scripts/wait-for-it.sh:/etc/lantern/wait-for-it.sh
command: /etc/lantern/wait-for-it.sh lantern-mq:5672 -- /etc/lantern/wait-for-it.sh postgres:5432 -- ./main
shinydashboard:
build:
context: ./shinydashboard
args:
cert_dir: ./certs
LANTERN_DBNAME: ${LANTERN_DBNAME}
LANTERN_DBUSER: ${LANTERN_DBUSER}
LANTERN_DBPASSWORD: ${LANTERN_DBPASSWORD}
LANTERN_DBHOST: ${LANTERN_DBHOST}
LANTERN_DBPORT: ${LANTERN_DBPORT}
LANTERN_DBSSLMODE: ${LANTERN_DBSSLMODE}
LANTERN_CAPQUERY_QRYINTVL: "${LANTERN_CAPQUERY_QRYINTVL}"
LANTERN_BANNER_TEXT: ""
image: lantern_shinydashboard:current
depends_on:
- postgres
volumes:
- ./shinydashboard/lantern/:/srv/shiny-server
- ./shinydashboard/shiny_logs:/var/log/shiny-server
- "./VERSION:/srv/shiny-server/VERSION:ro"
- jsonexport:/srv/shiny-server/exportfolder
ports:
- "8090:3838"
volumes:
pgdata:
rabbitmqdata:
jsonexport: