forked from IntelLabsEurope/landscaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (55 loc) · 1.42 KB
/
docker-compose.yaml
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
version: '2.1'
services:
base:
build: ./
image: landscaper_base:latest
neo4j:
image: neo4j:2.3.12
volumes:
- <local_landscape_path>/neo4j_data:/data
ports:
- "7475:7474" # expose the port for the console ui
environment:
- NEO4J_AUTH=neo4j/password # neo4j requires change from default password, should reflect landscape.cfg
hostname:
neo4j
network_mode: "host"
landscaper:
build: ./
image: landscaper:latest
volumes:
#IMPORTANT: Ensure these paths does not conflict with
# 1. DATA_DIR value in paths.py,
# 2. hwloc_folder / cpuinfo_folder values in landscaper.cfg file
- <local_landscape_path>/data:/landscaper/data
- <local_landscape_path>/landscaper.cfg:/landscaper/landscaper.cfg
depends_on:
- "neo4j"
environment:
- PYTHONPATH=/landscaper
- OS_TENANT_NAME=
- OS_PROJECT_NAME=
- OS_TENANT_ID=
- OS_USERNAME=
- OS_PASSWORD=
- OS_AUTH_URL=
network_mode: "host"
working_dir: /landscaper
command: ["./start.sh", "http://localhost:7474"]
web:
build: ./
image: landscaper_web:latest
volumes:
- <local_landscape_path>/landscaper.cfg:/landscaper/landscaper.cfg
environment:
- PYTHONPATH=/landscaper
expose:
- "9001"
ports:
- "9001:9001"
depends_on:
- neo4j
- landscaper
network_mode: "host"
working_dir: /landscaper/landscaper/web
command: ["/usr/local/bin/gunicorn", "-b", "0.0.0.0:9001", "-w", "2", "application:APP"]