forked from NrgXnat/xnat-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
86 lines (86 loc) · 2.15 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
version: '3'
services:
xnat-web:
build:
context: ./tomcat
args:
TIMEZONE: Australia/Melbourne
ports:
- "8081:8080"
- "8104:8104"
volumes:
# The webapps directory to hold the WAR
- ./webapps:/usr/local/tomcat/webapps
# The plugins directory to add new plugins
- ./plugins:/data/xnat/home/plugins
# Mount the logs outside the container for easy access
- ./logs/xnat:/data/xnat/home/logs
- ./logs/tomcat:/opt/tomcat/logs
# Configuration files
- ./tomcat/server.xml:/opt/tomcat/conf/server.xml
- ./tomcat/tomcat-users.xml:/opt/tomcat/conf/tomcat-users.xml
- ./tomcat/xnat-conf.properties:/data/xnat/home/config/xnat-conf.properties
# Pass docker socket for XNAT container service
- /var/run/docker.sock:/var/run/docker.sock
expose:
- "8080"
depends_on:
- xnat-db
environment:
- JAVA_OPTS=-Xms512m -Xmx1g -Dxnat.home=/data/xnat/home -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
- XNAT_HOME=/data/xnat/home
xnat-db:
build:
context: ./postgres
args:
TIMEZONE: Australia/Melbourne
expose:
- "5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
xnat-backup:
build:
context: ./backup
args:
TIMEZONE: Australia/Melbourne
depends_on:
- xnat-db
links:
- xnat-db
volumes:
- ./backups:/backups
xnat-nginx:
build:
context: ./nginx
args:
TIMEZONE: Australia/Melbourne
ports:
- "80:80"
- "443:443"
expose:
- "80"
links:
- xnat-web
prometheus:
image: prom/prometheus
volumes:
- ./prometheus/prometheus.yaml:/etc/prometheus/prometheus.yaml
command:
- '--config.file=/etc/prometheus/prometheus.yaml'
ports:
- '9090:9090'
links:
- cadvisor
cadvisor:
image: google/cadvisor
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
ports:
- "8082:8080"
expose:
- 8082