-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·72 lines (62 loc) · 2.56 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
# Copyright (c) 2019-2019
# LREN CHUV, Lausanne
#
# All Rights Reserved.
#
# Permission to use, copy, modify and distribute this software and its
# documentation is hereby granted, provided that both the copyright notice
# and this permission notice appear in all copies of the software, derivative
# works or modified versions, and any portions thereof, and that both notices
# appear in supporting documentation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. THE AUTHORS AND ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE
# DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
# USE OF THIS SOFTWARE.
version: '2'
# the following environment variables are expected to be available when running
# docker-compose up
# - mipmap_source: The folder containing the data to convert and the associated configuration
# - mipmap_target: Where to store the result of the conversion
# - mipmap_db: Where to store the PostgreSQL DB files for MIPMap
# WARNING: For some reason, during the first start the postgres DB is not always ready fast
# enough, just make sure to restart everything if it fails the first time.
services:
i2b2_setup:
image: "hbpmip/i2b2-setup:1.5.2"
container_name: "i2b2-setup"
command: "upgrade head"
external_links:
- "${dfcontainer_name}:test_postgres"
environment:
- DB_URL=postgresql://${df_db_user}:${df_db_pwd}@test_postgres:5432/${db_capture}
network_mode: bridge
i2b2_setup_harmonized:
image: "hbpmip/i2b2-setup:1.5.2"
container_name: "i2b2-setup-harmonized"
command: "upgrade head"
external_links:
- "${dfcontainer_name}:test_postgres"
environment:
- DB_URL=postgresql://${df_db_user}:${df_db_pwd}@test_postgres:5432/${db_harmonized}
network_mode: bridge
mipmap_etl:
image: "hbpmip/mipmap"
container_name: "mipmap"
volumes:
- "${mipmap_map}:/opt/map:rw"
- "${mipmap_source}:/opt/source:rw"
- "${mipmap_pgproperties}:/opt/postgresdb.properties:rw"
environment:
- i2b2_db_host=test_postgres
- i2b2_db_port=5432
- "i2b2_db_name=${db_capture}"
- "i2b2_db_user=${df_db_user}"
- "i2b2_db_password=${df_db_pwd}"
- "i2b2_db_harmonized_name=${db_harmonized}"
- mipmap_db_name=mipmap
external_links:
- "${dfcontainer_name}:test_postgres"
command: ['sh', '/opt/map/run.sh']
network_mode: bridge