Skip to content

Commit

Permalink
keto: add docker-compose
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Login <batazor@evrone.com>
  • Loading branch information
batazor committed Apr 9, 2023
1 parent c20920b commit 061f540
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ops/Makefile/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dev: ## Run for development mode
-f ops/docker-compose/database/redis/redis.yaml \
-f ops/docker-compose/application/auth/kratos/kratos.yaml \
-f ops/docker-compose/application/auth/hydra/hydra.yaml \
-f ops/docker-compose/application/auth/keto/keto.yaml \
-f ops/docker-compose/gateway/traefik/traefik.yaml \
-f ops/docker-compose/tooling/observability/grafana/grafana-tempo.yaml \
up -d --remove-orphans --build
Expand All @@ -42,6 +43,7 @@ run: ## Run this project in docker compose
-f ops/docker-compose/gateway/traefik/traefik.yaml \
-f ops/docker-compose/application/auth/kratos/kratos.yaml \
-f ops/docker-compose/application/auth/hydra/hydra.yaml \
-f ops/docker-compose/application/auth/keto/keto.yaml \
-f ops/docker-compose/application/api/api.yaml \
-f ops/docker-compose/application/metadata/metadata.yaml \
-f ops/docker-compose/application/logger/logger.yaml \
Expand Down Expand Up @@ -73,6 +75,7 @@ down: ## Down docker compose
-f ops/docker-compose/application/auth/keycloak/keycloak.yaml \
-f ops/docker-compose/application/auth/kratos/kratos.yaml \
-f ops/docker-compose/application/auth/hydra/hydra.yaml \
-f ops/docker-compose/application/auth/keto/keto.yaml \
-f ops/docker-compose/application/api/api.yaml \
-f ops/docker-compose/application/metadata/metadata.yaml \
-f ops/docker-compose/application/logger/logger.yaml \
Expand Down
18 changes: 18 additions & 0 deletions ops/docker-compose/application/auth/keto/conf/keto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: v0.11.1-alpha.0

log:
level: debug

namespaces:
- name: shortlink
id: 1

serve:
read:
host: 0.0.0.0
port: 4466
write:
host: 0.0.0.0
port: 4467

dsn: memory
32 changes: 32 additions & 0 deletions ops/docker-compose/application/auth/keto/keto.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '2.4'

x-network: &network
networks:
- simple
dns:
- ${DNS_IP}
dns_search: ${DNS_SEARCH}

services:

# -------------------------------------------------------------------------- #
# ORY KETO
# Access control policy engine
# https://www.ory.sh/keto/
# -------------------------------------------------------------------------- #

keto:
<<: *network
depends_on:
- coredns
image: oryd/keto:v0.11.1-alpha.0
environment: {}
command: serve -c /home/ory/keto.yml
container_name: keto
init: true
ports:
- "4466:4466"
- "4467:4467"
restart: on-failure
volumes:
- ./ops/docker-compose/application/auth/keto/conf:/home/ory

0 comments on commit 061f540

Please sign in to comment.