-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-all.yml
97 lines (92 loc) · 2.37 KB
/
docker-compose-all.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
89
90
91
92
93
94
95
96
97
services:
puppygraph:
image: puppygraph/puppygraph:0.54
container_name: puppygraph
environment:
- PUPPYGRAPH_USERNAME=puppygraph
- PUPPYGRAPH_PASSWORD=puppyheap3
- SCHEMA_PATH=/etc/config/puppygraph/schema.json
- GRAPH_FEATURES=feature.engine.enableCypherEngineProperties:true
networks:
postgres_net:
depends_on:
- postgres
ports:
- "8081:8081"
- "8182:8182"
- "7687:7687"
- "8182:8182"
- "8890:8890"
volumes:
- ./puppygraph/schema.json:/etc/config/puppygraph/schema.json
postgres:
image: postgres:14.1-alpine
container_name: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres123
networks:
postgres_net:
ports:
- "5432:5432"
volumes:
- ./puppygraph/postgres-data:/var/lib/postgresql/data
- ./puppygraph/csv_data:/tmp/csv_data:ro
- ./puppygraph/postgres-schema.sql:/docker-entrypoint-initdb.d/postgres-schema.sql
healthcheck:
test: [ "CMD", "pg_isready", "-U", "user", "-h", "127.0.0.1" ]
interval: 10s
timeout: 5s
retries: 5
puppygraph-graphxr-service:
build:
context: .
ports:
- "8000:8000"
volumes:
- .:/app
- ./samples.yaml:/app/samples.yaml
environment:
- SAMPLES_PATH=/app/samples.yaml
- NEO4J_URI=bolt://puppygraph:7687
- NEO4J_USER=puppygraph
- NEO4J_PASSWORD=puppyheap3
networks:
- postgres_net
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
mongo:
image: mongo:4.0.28
container_name: graphxr_mongo
volumes:
- "./mongo/db:/data/db:rw"
- "./mongo/backup:/backup:rw"
restart: always
graphxr_whoami:
image: kineviz/graphxr_trial:whoami
container_name: graphxr_whoami
volumes:
- whoami-volume:/whoAmI:rw
restart: always
network_mode: host
graphxr:
image: kineviz/graphxr_trial:latest
container_name: graphxr
ports:
- "9000:9000"
volumes:
- whoami-volume:/whoAmI:r
- "./graphxr:/data:rw"
environment:
- "PORT=9000"
- "ADMIN_EMAIL=graphxr@kineviz.com"
- "ADMIN_PASSWORD=puppyheap3"
- "MONGO_URL=mongodb://mongo/graphxr"
depends_on:
- mongo
- graphxr_whoami
restart: always
volumes:
whoami-volume: {}
networks:
postgres_net:
name: puppy-postgres