From f8ea82a7a5b1ce3deac159cf8cf2b9824511be61 Mon Sep 17 00:00:00 2001 From: Andrew Minkin Date: Thu, 28 Apr 2022 12:52:18 +0200 Subject: [PATCH 1/2] fix: added configuration for keto for docker-compose --- contrib/keto/keto.yml | 24 ++++++++++++++++++++++++ docker-compose.yml | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 contrib/keto/keto.yml diff --git a/contrib/keto/keto.yml b/contrib/keto/keto.yml new file mode 100644 index 000000000..953e674e6 --- /dev/null +++ b/contrib/keto/keto.yml @@ -0,0 +1,24 @@ +version: v0.6.0-alpha.1 + +log: + level: debug + +namespaces: + - id: 0 + name: messages + - id: 1 + name: chats + - id: 2 + name: files + - id: 3 + name: directories + +dsn: memory + +serve: + read: + host: 0.0.0.0 + port: 4466 + write: + host: 0.0.0.0 + port: 4467 diff --git a/docker-compose.yml b/docker-compose.yml index 90d85e91f..2d8b86a34 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,9 +5,13 @@ services: ports: - '4466:4466' - '4467:4467' - command: serve + command: serve -c /home/ory/keto.yml environment: - LOG_LEVEL=debug - PORT=4466 - DSN=memory restart: on-failure + volumes: + - type: bind + source: './contrib/keto' + target: '/home/ory' From bf4d2358c771c8af804de527a33cdfdf6cfd7193 Mon Sep 17 00:00:00 2001 From: Patrik Date: Thu, 5 May 2022 16:08:52 +0200 Subject: [PATCH 2/2] fix: use existing configuration file --- config/keto.yml | 4 +++- contrib/keto/keto.yml | 24 ------------------------ docker-compose.yml | 8 ++------ 3 files changed, 5 insertions(+), 31 deletions(-) delete mode 100644 contrib/keto/keto.yml diff --git a/config/keto.yml b/config/keto.yml index ef3bfa5fa..02ccedc22 100644 --- a/config/keto.yml +++ b/config/keto.yml @@ -1,4 +1,4 @@ -version: v0.7.0-alpha.1 +version: v0.8.0-alpha.2 log: level: debug @@ -10,3 +10,5 @@ serve: write: host: 0.0.0.0 port: 4467 + +dsn: memory diff --git a/contrib/keto/keto.yml b/contrib/keto/keto.yml deleted file mode 100644 index 953e674e6..000000000 --- a/contrib/keto/keto.yml +++ /dev/null @@ -1,24 +0,0 @@ -version: v0.6.0-alpha.1 - -log: - level: debug - -namespaces: - - id: 0 - name: messages - - id: 1 - name: chats - - id: 2 - name: files - - id: 3 - name: directories - -dsn: memory - -serve: - read: - host: 0.0.0.0 - port: 4466 - write: - host: 0.0.0.0 - port: 4467 diff --git a/docker-compose.yml b/docker-compose.yml index 2d8b86a34..a60ce9341 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,12 +6,8 @@ services: - '4466:4466' - '4467:4467' command: serve -c /home/ory/keto.yml - environment: - - LOG_LEVEL=debug - - PORT=4466 - - DSN=memory restart: on-failure volumes: - type: bind - source: './contrib/keto' - target: '/home/ory' + source: config/keto.yml + target: /home/ory/keto.yml