-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
170 lines (167 loc) · 4.18 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
services:
pisces-db:
image: postgres:14.4
volumes:
- piscesdbvolume:/var/lib/postgresql/data/
networks:
- astraeus-interop
restart: "always"
environment:
- POSTGRES_PASSWORD=${PISCES_DB_PASS}
pisces-web:
build:
context: ./pisces
dockerfile: Dockerfile.prod
environment:
- APPLICATION_PORT=8007
volumes:
- ./pisces:/code
networks:
- astraeus-interop
ports:
- "8007:8007"
depends_on:
- pisces-db
- elasticsearch
restart: "always"
pisces-cron:
build:
context: ./pisces
dockerfile: Dockerfile.cron
volumes:
- /data/logs/cron:/var/log/pisces-cron
networks:
- astraeus-interop
depends_on:
- pisces-web
restart: "always"
scorpio-db:
image: postgres:14.4
volumes:
- scorpiodbvolume:/var/lib/postgresql/data/
networks:
- astraeus-interop
restart: "always"
environment:
- POSTGRES_PASSWORD=${SCORPIO_DB_PASS}
scorpio-web:
build:
context: ./scorpio
dockerfile: Dockerfile.prod
args:
- SCORPIO_DNS=${SCORPIO_DNS}
- APPLICATION_PORT=${SCORPIO_PORT:-8013}
volumes:
- ./scorpio:/code
networks:
- astraeus-interop
ports:
- "${SCORPIO_PORT:-8013}:${SCORPIO_PORT:-8013}"
depends_on:
- scorpio-db
- elasticsearch
restart: "always"
scorpio-cron:
build:
context: ./scorpio
dockerfile: Dockerfile.cron
volumes:
- /data/logs/cron:/var/log/scorpio-cron
networks:
- astraeus-interop
depends_on:
- scorpio-web
restart: "always"
argo-db:
image: postgres:14.4
volumes:
- argodbvolume:/var/lib/postgresql/data/
networks:
- astraeus-interop
restart: "always"
environment:
- POSTGRES_PASSWORD=${ARGO_DB_PASS}
argo-web:
build:
context: ./argo
dockerfile: Dockerfile.prod
volumes:
- ./argo:/code
networks:
- astraeus-interop
ports:
- "8001:8001"
depends_on:
- argo-db
- elasticsearch
restart: "always"
request-broker-db:
image: postgres:14.4
volumes:
- requestbrokerdbvolume:/var/lib/postgresql/data/
networks:
- astraeus-interop
environment:
- POSTGRES_PASSWORD=${REQUEST_BROKER_DB_PASS}
restart: "always"
request-broker-web:
build:
context: ./request_broker
dockerfile: Dockerfile.prod
args:
- REQUEST_BROKER_DNS=${REQUEST_BROKER_DNS}
- APPLICATION_PORT=${REQUEST_BROKER_PORT:-8000}
volumes:
- ./request_broker:/code
networks:
- astraeus-interop
ports:
- "${REQUEST_BROKER_PORT:-8000}:${REQUEST_BROKER_PORT:-8000}"
depends_on:
- request-broker-db
restart: "always"
dimes-web:
build:
context: ./dimes
dockerfile: Dockerfile.prod
networks:
- astraeus-interop
ports:
- 3000:80
stdin_open: true
depends_on:
- argo-web
- request-broker-web
restart: "always"
elasticsearch:
image: elasticsearch:7.9.3
environment:
- node.name=elasticsearch
- discovery.seed_hosts=elasticsearch
- cluster.initial_master_nodes=elasticsearch
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- http.cors.enabled=true
- http.cors.allow-origin=https://myreadingroom.library.pitt.edu http://myreadingroom.library.pitt.edu http://localhost:3000 https://requestbroker.library.pitt.edu http://requestbroker.library.pitt.edu http://localhost:8000 https://argo.library.pitt.edu http://argo.library.pitt.edu http://localhost:8001 http://localhost:3001 http:localhost:8008 http://localhost:8007
- http.cors.allow-headers=Content-Type,Access-Control-Allow-Headers,Authorization,X-Requested-With
- http.cors.allow-credentials=true
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elasticsearch:/usr/share/elasticsearch/data
networks:
- astraeus-interop
ports:
- 9200:9200
restart: "always"
volumes:
piscesdbvolume:
scorpiodbvolume:
elasticsearch:
argodbvolume:
requestbrokerdbvolume:
networks:
astraeus-interop: