-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
228 lines (213 loc) · 6.01 KB
/
docker-compose.yml
File metadata and controls
228 lines (213 loc) · 6.01 KB
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
version: '3.5'
services:
pygeoapi:
build:
context: ./metsis-pygeoapi/
dockerfile: Dockerfile
container_name: metsis_pygeoapi
image: epinux/metsis-pygeoapi
# environment:
#
ports:
- 5050:80
restart: always
# volumes:
# - ./volumes/pygeoapi/config.yml:/pygeoapi/local.config.yml
solr:
build:
context: ./metsis-solr/
dockerfile: Dockerfile
container_name: metsis_solr
image: epinux/metsis-solr
environment:
VIRTUAL_HOST: ${SOLR_VIRTUAL_HOST}
VIRTUAL_PORT: 8983
NETWORK_ACCESS: internal
LETSENCRYPT_HOST: ${SOLR_VIRTUAL_HOST}
LETSENCRYPT_MAIL: ${MY_EMAIL}
ports:
- "8983:8983"
volumes:
- solr_data:/var/solr/data
- ./volumes/solr/data:/tmp/data
restart: always
entrypoint:
- bash
- "-c"
- "precreate-core nbs-l1 /opt/solr/server/solr/configsets/myconfig ; precreate-core nbs-l2 /opt/solr/server/solr/configsets/myconfig; precreate-core nbs-thumbnail /opt/solr/server/solr/configsets/myconfig; exec solr -f"
fimex-wps:
build:
context: ./metsis-pywps/
dockerfile: Dockerfile
container_name: metsis_pywps_xenial
image: epinux/metsis-pywps-xenial
ports:
- "4040:80"
volumes:
- ./volumes/pywps/prod/html:/var/www/html
- ./volumes/pywps/prod/apache2:/etc/apache2
- ./volumes/pywps/prod/wps:/usr/local/wps
- ./volumes/pywps/prod/cgi-bin:/usr/lib/cgi-bin
- ./volumes/pywps/prod/dev:/usr/local/dev
- ./volumes/pywps/prod/html/wps/log/log.txt:/var/www/html/wps/log/log.txt
restart: unless-stopped
pywps:
build:
context: ./metsis-pywps/
dockerfile: Dockerfile
container_name: metsis_pywps
image: epinux/metsis-pywps
ports:
- "5000:5000"
volumes:
- ./volumes/pywps/processes:/pywps-flask/processes
- ./volumes/pywps/data:/pywps-flask/data
- ./volumes/pywps/outputs:/pywps-flask/outputs
- ./volumes/pywps/pywps-flask/demo.py:/pywps-flask/demo.py
- ./volumes/pywps/pywps-flask/wsgi/pywps.wsgi:/pywps-flask/wsgi/pywps.wsgi
- ./volumes/pywps/pywps-flask/pywps.cfg:/pywps-flask/pywps.cfg
restart: unless-stopped
drupal7:
build:
context: ./metsis-drupal/
dockerfile: Dockerfile
container_name: metsis_drupal7
image: epinux/metsis-drupal7
depends_on:
- postgres
ports:
- "7070:80"
volumes:
- drupal7_data:/var/www/html
- ./volumes/drupal7/sites/all/modules/metsis_ts_bokeh:/var/www/html/sites/all/modules/metsis_ts_bokeh
restart: always
links:
- fastapi
drupal8:
build:
context: ./metsis-drupal/
dockerfile: Dockerfile-drupal8
container_name: metsis_drupal8
image: epinux/metsis-drupal8
depends_on:
- postgres
ports:
- "8080:80"
volumes:
- drupal8_data:/var/www/html
- ./volumes/drupal8/metsis_ts_bokeh:/var/www/html/modules/metsis_ts_bokeh
restart: always
links:
- fastapi
postgres:
build:
context: ./metsis-postgres/
dockerfile: Dockerfile
container_name: metsis_postgres
image: epinux/metsis-postgres
restart: always
hostname: postgres
environment:
POSTGRES_INITDB_ARGS: "-E UTF8"
POSTGRES_DB: drupal7_db,csw_db,drupal8_db
POSTGRES_USER: metsis_user
POSTGRES_PASSWORD: metsis_password
LANGUAGE: "en_US.UTF-8"
LANG: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
volumes:
- ./volumes/postgres/data:/var/lib/postgresql/11
ports:
- "5432:5432"
fastapi:
build:
context: ./metsis-fastapi/
dockerfile: Dockerfile
container_name: metsis_fastapi
image: epinux/metsis-fastapi
environment:
# TODO:
# needs a better solution, some hints:
# https://stackoverflow.com/questions/25862071/accessing-os-environment-variables-from-jinja2-template
# changing theurl below affects the download.html template
DOWNLOAD_DIR: "/app/static/download"
ports:
- "7000:80"
restart: always
volumes:
# - ./volumes/fastapi/pybasket/config.yaml:/opt/basket/config.yaml
# - ./volumes/fastapi/pybasket/app:/app
- ./volumes/fastapi/ncplot/app:/app
hyrax:
build:
context: ./metsis-hyrax/
dockerfile: Dockerfile
container_name: metsis_hyrax
image: epinux/metsis-hyrax
ports:
- "9090:8080"
volumes:
- ./volumes/pydap/data:/usr/share/hyrax
restart: always
pydap:
build:
context: ./metsis-pydap/
dockerfile: Dockerfile
container_name: metsis_pydap
image: epinux/metsis-pydap
ports:
- "9999:80"
volumes:
- ./volumes/pydap/data:/var/www/localhost/pydap/data
restart: unless-stopped
jupyter:
build:
context: ./metsis-jupyter/
dockerfile: Dockerfile
container_name: metsis_jupyter
image: epinux/metsis-jupyter
ports:
- "444:443"
volumes:
- ./volumes/jupyter/notebooks:/root/notebooks/
restart: unless-stopped
pycsw:
build:
context: ./metsis-pycsw/
dockerfile: Dockerfile
container_name: metsis_pycsw
image: epinux/metsis-pycsw
ports:
- "8000:8000"
environment:
PYCSW_CONFIG: /etc/pycsw/pycsw.cfg
volumes:
- ./volumes/pycsw/conf/pycsw.cfg:/etc/pycsw/pycsw.cfg
- ./volumes/pycsw/commands/pycsw_setup.sh:/usr/local/bin/pycsw_setup.sh
- ./volumes/pycsw/commands/mmd2isofix.py:/usr/local/bin/mmd2isofix.py
- ./volumes/pycsw/commands/mmd-to-iso.xsl:/usr/local/share/mmd-to-iso.xsl
restart: unless-stopped
pgadmin:
container_name: pgadmin4
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: mail@domain.net
PGADMIN_DEFAULT_PASSWORD: pg_password
ports:
- "6000:80"
restart: unless-stopped
volumes:
solr_data:
name: solr_data
postgres_data:
name: postgres_data
drupal7_data:
name: drupal7_data
drupal8_data:
name: drupal8_data
pybasket_data:
name: pybasket_data
pywps_data:
name: pywps_data
pydap_data:
name: pydap_data