forked from ubccr/coldfront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
235 lines (232 loc) · 6.01 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
version: '3'
services:
testsmtp:
image: mailhog/mailhog
command: ["-smtp-bind-addr", "0.0.0.0:25"]
user: root
expose:
- 25
- 8025
ports:
- 8025:8025
networks:
main:
ifxmail-db:
image: mariadb
volumes:
- ifxmail-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=ifxmail
- MYSQL_DATABASE=ifxmail
- MYSQL_USER=ifxmail
- MYSQL_PASSWORD=ifxmail
- TZ=America/New_York
command: '--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci'
networks:
main:
ifxmail:
image: ifxmail
volumes:
- ../../ifxmail:/app
environment:
- IFXMAIL_USERNAME=root
- IFXMAIL_PASSWORD=ifxmail
- IFXMAIL_HOSTNAME=ifxmail-db
- IFXMAIL_DATABASE=ifxmail
- IFX_REMOTE_USER=veradmin
- IFXMAIL_SMTP_SERVER=testsmtp:25
- IFXMAIL_LOGLEVEL=INFO
- IFXMAIL_DEBUG=TRUE
- PYTHONUNBUFFERED=1
links:
- ifxmail-db
depends_on:
- ifxmail-db
ports:
- 6969:80
networks:
main:
ifxmail-runner:
image: ifxmail
command: ./wait-for-it.sh -t 120 ifxmail-db:3306 -- ./manage.py processQueue testsmtp
volumes:
- ../../ifxmail:/app
environment:
- IFXMAIL_USERNAME=ifxmail
- IFXMAIL_PASSWORD=ifxmail
- IFXMAIL_HOSTNAME=ifxmail-db
- IFXMAIL_DATABASE=ifxmail
- IFX_REMOTE_USER=veradmin
- IFXMAIL_SMTP_SERVER=testsmtp
- IFXMAIL_LOGLEVEL=INFO
links:
- ifxmail-db
- testsmtp
depends_on:
- ifxmail-db
- testsmtp
networks:
main:
nanites-db:
image: mariadb
volumes:
- nanites-test-data:/var/lib/mysql
# - nanites-prod-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=nanites
- MYSQL_DATABASE=nanites
- MYSQL_USER=nanites
- MYSQL_PASSWORD=nanites
ports:
- 3360:3306
command: '--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci'
networks:
main:
nanites:
image: nanites
volumes:
- ../../nanites:/app
environment:
- NANITES_USERNAME=nanites
- NANITES_PASSWORD=nanites
- NANITES_HOSTNAME=nanites-db
- NANITES_DATABASE=nanites
- IFX_REMOTE_USER=veradmin
- NANITES_DEBUG=TRUE
- NANITES_LOGLEVEL=DEBUG
links:
- nanites-db
depends_on:
- nanites-db
ports:
- 8765:80
networks:
main:
coldfront-db:
image: mariadb
volumes:
- coldfront-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=coldfront
- MYSQL_DATABASE=coldfront
- MYSQL_USER=coldfront
- MYSQL_PASSWORD=coldfront
command: '--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci'
networks:
main:
coldfront:
image: coldfront
depends_on:
- coldfront-db
- nanites
- fiine-drf
volumes:
- ../../coldfront2:/usr/src/app
links:
- testsmtp
- fiine-drf
ports:
- 9022:80
environment:
- COLDFRONT_IFX_APP_TOKEN=b3b3a090a553dd6bcb29c9bfec7fb7704dee1ccc
- SMTP_SERVER=testsmtp
- IFX_REMOTE_USER=veradmin
- NANITES_API_BASE=http://nanites/nanites/api
- IFXMAIL_API_BASE=http://ifxmail/ifxmail/api
- FIINE_API_BASE=http://fiine-drf/fiine/api
- PYTHONUNBUFFERED=1
networks:
main:
fiine-db:
image: mariadb
volumes:
# - fiine-prod-data:/var/lib/mysql
- fiine-test-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=fiine
- MYSQL_DATABASE=fiine
- MYSQL_USER=fiine
- MYSQL_PASSWORD=fiine
command: '--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci'
networks:
main:
fiine-drf:
image: fiine-drf
depends_on:
- fiine-db
- nanites
volumes:
- ../../fiine:/app
- ../../fiine/history.sqlite:/root/.ipython/profile_default/history.sqlite
links:
- fiine-db
- testsmtp
ports:
- 9090:80
environment:
- FIINE_IFX_APP_TOKEN=1f8c484b9bfd85931db928ea96f86533b81c02d8
- FIINE_USERNAME=root
- FIINE_PASSWORD=fiine
- FIINE_DATABASE=fiine
- FIINE_HOSTNAME=fiine-db
- FIINE_LOGLEVEL=DEBUG
- FIINE_DEBUG=TRUE
- FIINE_DJANGO_KEY=anweijfnvwoejvniejnvfwvijnf
- FIINE_URL_BASE=http://localhost:9091/fiine
- SMTP_SERVER=testsmtp
- IFX_REMOTE_USER=a02b855b75ae1d77@harvard.edu
- NANITES_API_BASE=http://nanites/nanites/api
- IFXMAIL_API_BASE=http://ifxmail/ifxmail/api
- COLDFRONT_API_BASE=http://coldfront/ifx/api
- HERS_API_BASE=http://hers-drf/hers/api
- CBSN_API_BASE=http://cbsn-drf/cbsn/api
- IFXONBOARD_API_BASE=http://onboardapi/onboard/api
- IFXONBOARD_URL_BASE=http://localhost:8080/onboard
- PYTHONUNBUFFERED=1
networks:
main:
fiine-preq:
image: fiine-drf
depends_on:
- fiine-db
- nanites
volumes:
- ../../fiine:/app
links:
- fiine-db
- testsmtp
environment:
- FIINE_IFX_APP_TOKEN=1f8c484b9bfd85931db928ea96f86533b81c02d8
- FIINE_USERNAME=fiine
- FIINE_PASSWORD=fiine
- FIINE_DATABASE=fiine
- FIINE_HOSTNAME=fiine-db
- FIINE_LOGLEVEL=DEBUG
- FIINE_DEBUG=TRUE
- FIINE_DJANGO_KEY=anweijfnvwoejvniejnvfwvijnf
- FIINE_URL_BASE=http://localhost:9091/fiine
- SMTP_SERVER=testsmtp
- IFX_REMOTE_USER=veradmin
- NANITES_API_BASE=http://nanites/nanites/api
- IFXMAIL_API_BASE=http://ifxmail/ifxmail/api
- COLDFRONT_API_BASE=http://coldfront/ifx/api
- HERS_API_BASE=http://hers-drf/hers/api
- IFXONBOARD_API_BASE=http://onboardapi/onboard/api
- IFXONBOARD_URL_BASE=http://localhost:8080/onboard
- PYTHONUNBUFFERED=1
command: ./wait-for-it.sh -t 60 fiine-db:3306 -- ./manage.py preq
networks:
main:
volumes:
nanites-test-data:
nanites-prod-data:
ifxmail-data:
fiine-prod-data:
fiine-test-data:
coldfront-data:
networks:
main:
ipam:
driver: default
config:
- subnet: 172.28.9.0/16