From 269f1a0981240d8dd89cb2153c099c506dee8fa7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robotka=20Adri=C3=A1n?= <robotka@sch.bme.hu>
Date: Sun, 28 Feb 2021 13:56:27 +0000
Subject: [PATCH] Grakn with docker compose

---
 README.md                |  4 ++--
 grakn/.gitignore         |  1 +
 grakn/console.sh         |  4 ++++
 grakn/docker-compose.yml | 11 +++++++++++
 4 files changed, 18 insertions(+), 2 deletions(-)
 create mode 100644 grakn/.gitignore
 create mode 100755 grakn/console.sh
 create mode 100644 grakn/docker-compose.yml

diff --git a/README.md b/README.md
index 203ba9c..0c3e969 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ Check out `docs/` folder and the
 
 ## Timing
 
-- Week 1-2: orientation
-- Week 3-6: PoC
+- Week 1-3: orientation
+- Week 4-6: PoC
 - Week 7-10: details
 - Week 11-14: documentation
diff --git a/grakn/.gitignore b/grakn/.gitignore
new file mode 100644
index 0000000..8fce603
--- /dev/null
+++ b/grakn/.gitignore
@@ -0,0 +1 @@
+data/
diff --git a/grakn/console.sh b/grakn/console.sh
new file mode 100755
index 0000000..e6788f2
--- /dev/null
+++ b/grakn/console.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+docker exec -it grakn-srv \
+  /grakn-core-all-linux/grakn console
diff --git a/grakn/docker-compose.yml b/grakn/docker-compose.yml
new file mode 100644
index 0000000..e3a3c58
--- /dev/null
+++ b/grakn/docker-compose.yml
@@ -0,0 +1,11 @@
+version: "3.4"
+services:
+
+  grakn:
+    container_name: grakn-srv
+    image: graknlabs/grakn:1.8.4
+    volumes:
+      - ./data:/grakn-core-all-linux/server/db/
+    ports:
+      - 127.0.0.1:48555:48555
+      - 127.0.0.1:1729:1729
-- 
GitLab