forked from NrgXnat/xnat-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1.07 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
version: '2'
services:
xnat-web:
build: ./xnat
ports:
- "8081:8080"
volumes:
- ./plugins:/data/xnat/home/plugins
- /var/run/docker.sock:/var/run/docker.sock
expose:
- "8080"
links:
- xnat-db
xnat-db:
build: ./postgres
expose:
- "5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
xnat-nginx:
build: ./nginx
ports:
- "80:80"
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