-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-memgraph.yml
40 lines (40 loc) · 1.24 KB
/
docker-compose-memgraph.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
services:
memgraph:
image: memgraph/memgraph-platform:${MEMGRAPH_PLATFORM_VERSION}
ports:
- ${MEMGRAPH_BOLT_PORT}:7687
- 7444:7444
- 3000:3000
environment:
- MEMGRAPH=--bolt-server-name-for-init=Neo4j/ --telemetry-enabled=false --storage-properties-on-edges=true
healthcheck:
test: nc -zw 1 localhost 7687
interval: 5s
timeout: 2s
retries: 50
volumes:
# - ./data/memgraph/mg_lib:/var/lib/memgraph
# - ./data/memgraph/mg_log:/var/log/memgraph
# - ./data/memgraph/mg_etc:/etc/memgraph
- ./datasets/pole:/datasets/pole
- ./datasets/fraud:/datasets/fraud
entrypoint: ["/usr/bin/supervisord"]
init-memgraph:
image: memgraph/memgraph:${MEMGRAPH_VERSION}
depends_on:
memgraph:
condition: service_healthy
entrypoint:
- /bin/bash
- -c
- |
echo Loading POLE dataset
/usr/bin/mgconsole -host memgraph < /datasets/pole/memgraph-load.cypher
echo status $$?
echo Loading Fraud dataset
/usr/bin/mgconsole -host memgraph < /datasets/fraud/memgraph-load.cypher
echo status $$?
echo Done.
volumes:
- ./datasets/pole:/datasets/pole
- ./datasets/fraud:/datasets/fraud