-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
88 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
87
88
version: '3'
services:
pg:
build:
context: ./docker/pg
args:
- MORTAR_DB_USER=mortarchangeme
- MORTAR_DB_PASSWORD=mortarpasswordchangeme
image: "mortar/pg"
restart: always
ports:
- "127.0.0.1:5434:5432"
volumes:
- "./pg-data/:/data/"
mortar-server:
build:
context: .
dockerfile: "./docker/mortar-server/Dockerfile"
image: "mortar/server2"
restart: always
environment:
- MORTAR_HTTP_ADDRESS=0.0.0.0
- MORTAR_HTTP_PORT=5001
- MORTAR_DB_HOST=pg
- MORTAR_DB_PORT=5432
- MORTAR_DB_DATABASE=mortar
- MORTAR_DB_USER=mortarchangeme
- MORTAR_DB_PASSWORD=mortarpasswordchangeme
- MORTAR_REASONER_ADDRESS=nginx:3030
ports:
- "127.0.0.1:5001:5001"
# - "2112:2112"
prometheus:
image: prom/prometheus:latest
restart: always
ports:
- "127.0.0.1:9090:9090"
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on:
- cadvisor
cadvisor:
image: gcr.io/cadvisor/cadvisor
restart: always
ports:
- "127.0.0.1:8080:8080"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
reasoner:
build:
context: .
dockerfile: "./docker/reasoner/Dockerfile"
image: "mortar/reasoner"
restart: always
environment:
- MORTAR_DB_HOST=pg
- MORTAR_DB_PORT=5432
- MORTAR_DB_DATABASE=mortar
- MORTAR_DB_USER=mortarchangeme
- MORTAR_DB_PASSWORD=mortarpasswordchangeme
ports:
- "3031"
depends_on:
- mortar-server
jupyter-notebook:
build:
context: .
dockerfile: "./docker/jupyter-notebook/Dockerfile"
# image: jupyter/scipy-notebook
restart: always
ports:
- "127.0.0.1:8888:8888"
command: "start-notebook.sh --NotebookApp.token=test-secret --NotebookApp.allow_origin='*'"
nginx:
image: nginx:latest
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- reasoner
ports:
- "3030:3030"