From a6bf548c0c3261e7ce4a293abb846bc0e78c53da Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Sat, 15 Mar 2025 10:59:03 +0100 Subject: [PATCH] add memgraph docker compose --- compose.yaml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 compose.yaml diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..be889aa --- /dev/null +++ b/compose.yaml @@ -0,0 +1,58 @@ +--- +services: + memgraph: + image: "memgraph/memgraph-mage:latest" + container_name: memgraph + volumes: + - mg_lib:/var/lib + - mg_log:/var/log + - mg_etc:/etc/memgraph + ports: + - "7687:7687" + - "7444:7444" + command: + - "--log-level=TRACE" + - "--storage-mode=ON_DISK_TRANSACTIONAL" + - "--storage-snapshot-interval-sec=86400" + - "--storage-snapshot-retention-count=60" + - "--storage-property-store-compression-enabled=true" + - "--storage-property-store-compression-level=mid" + - "--storage-snapshot-on-exit=true" + environment: + - MEMGRAPH_USER= + - MEMGRAPH_PASSWORD= + healthcheck: + test: ["CMD-SHELL", "echo 'RETURN 0;' | mgconsole || exit 1"] + interval: 10s + timeout: 5s + retries: 3 + start_period: 0s + lab: + image: memgraph/lab:latest + container_name: memgraph-lab + ports: + - "3036:3000" + depends_on: + - memgraph + environment: + - QUICK_CONNECT_MG_HOST=memgraph + - QUICK_CONNECT_MG_PORT=7687 +volumes: + mg_lib: + driver: local + driver_opts: + type: 'none' + o: 'bind' + device: '/data/memgraph/lib' + mg_log: + driver: local + driver_opts: + type: 'none' + o: 'bind' + device: '/data/memgraph/log' + mg_etc: + driver: local + driver_opts: + type: 'none' + o: 'bind' + device: '/data/memgraph/etc' \ No newline at end of file