-
Notifications
You must be signed in to change notification settings - Fork 39
/
docker-compose.yml
91 lines (84 loc) · 2.22 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
version: '3.6'
services:
nginx:
image: nginx:1.7.7
container_name: nginx
restart: always
networks:
- frontend
ports:
- 8080:80
- 8443:443
volumes:
- sampledata:/sampledata
- ${NGINX_DEFAULT_CONF:-./nginx/default.conf}:/etc/nginx/conf.d/default.conf
- ${NGINX_SSL_CERT:-./ssl/ssl_dev.crt}:/etc/ssl/SSL.crt:ro # SSL development certificate
- ${NGINX_SSL_KEY:-./ssl/ssl_dev.key}:/etc/ssl/SSL.key:ro # SSL development key
viewer:
image: ohif/viewer:v1.x
container_name: viewer
depends_on:
- mongo
- orthanc
restart: always
networks:
- frontend
- backend
# ports:
# - 3000:3000
links:
- mongo
environment:
- MONGO_URL=${MONGO_URL:-mongodb://mongo:27017/ohif}
volumes:
- ${VIEWER_CONFIG:-./config/viewer.json}:/app/app.json:ro
mongo:
image: mongo:4.0.14
container_name: mongo
networks:
- backend
# ports:
# - ${MONGO_PORT:-27017}:27017
volumes:
- ${MONGO_DATA:-./mongo_data}:/data/db
orthanc:
image: jodogne/orthanc-plugins:1.5.8
container_name: orthanc
depends_on:
- postgres
restart: always
networks:
- frontend
- backend
# ports:
# - ${ORTHANC_DICOM_PORT:-4242}:4242
# - ${ORTHANC_HTTP_PORT:-8042}:8042
volumes:
- sampledata:/sampledata
- ${ORTHANC_DB:-./orthanc_db}:/var/lib/orthanc/db
- ${ORTHANC_CONFIG:-./config/orthanc.json}:/etc/orthanc/orthanc.json:ro
environment:
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-pgpassword}
- PGDATA=${PGDATA:-/var/lib/postgresql/data}
- POSTGRES_DB=orthanc
postgres:
image: postgres:12.1
container_name: postgres
networks:
- backend
# ports:
# - ${POSTGRES_PORT:-5432}:5432
volumes:
- ${POSTGRES_DATA_MNT:-/pg_data/data}:${PGDATA:-/var/lib/postgresql/data}
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-pgpassword}
- PGDATA=${PGDATA:-/var/lib/postgresql/data}
- POSTGRES_DB=orthanc
networks:
frontend:
backend:
volumes:
sampledata: