-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
57 lines (53 loc) · 1.45 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
version: '3.1'
services:
postgres:
image: postgres:latest
container_name: postgres
restart: always
ports:
- 5432:5432
volumes:
# WARNING: FOR WSL USE THE FOLLOWING LINE INSTEAD:
#- ~/docker/postgres/data:/var/lib/postgresql/data
- ./docker/postgres/data:/var/lib/postgresql/data
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql # Create database for Orthanc
environment:
POSTGRES_PASSWORD: example
networks:
- postgres-network
orthanc:
image: brianzhouzc/orthanc-tmi-plugins:latest
entrypoint: ['Orthanc']#, '--verbose']
container_name: orthanc-server
command: /run/secrets/ # Path to the configuration files (stored as secrets)
depends_on:
- postgres
ports:
- 4242:4242
- 8042:8042
volumes:
# WARNING: FOR WSL USE THE FOLLOWING LINE INSTEAD:
#- ~/docker/orthanc/db:/var/lib/orthanc/db
- ./docker/orthanc/db:/var/lib/orthanc/db
- ./docker/orthanc/storage:/var/lib/orthanc/dicom
- ./docker/orthanc/plugins:/usr/share/orthanc/plugins
secrets:
- orthanc.json
environment:
- ORTHANC_NAME=TMI
networks:
- postgres-network
adminer:
image: adminer:latest
container_name: adminer
restart: always
ports:
- 8080:8080
networks:
- postgres-network
networks:
postgres-network:
driver: bridge
secrets:
orthanc.json:
file: ./docker/orthanc/orthanc.json