From 8f041bc726253834a61e20cbb87ea80ad425a271 Mon Sep 17 00:00:00 2001 From: csuzhang <48237831+zhyChesterCheung@users.noreply.github.com> Date: Fri, 29 Oct 2021 16:07:55 +0800 Subject: [PATCH] fix: docker-compose-postgres.yml SQL migration service (#779) --- CHANGELOG.md | 3 +++ docker-compose-postgres.yml | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7af88736..bb20ed1fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -127,6 +127,9 @@ ./keto-patch 0.02s user 0.01s system 6% cpu 0.425 total ``` +- Bugfix docker-compose-postgres.yml bug with Migrations were not applied + ([bf09c33](https://github.com/ory/keto/commit/bf09c33194aed71e9800ff38bfc4449be24dcf7a)) + # [0.7.0-alpha.1](https://github.com/ory/keto/compare/v0.7.0-alpha.0...v0.7.0-alpha.1) (2021-10-19) This release provides small docs fixes especially for SDK clients. diff --git a/docker-compose-postgres.yml b/docker-compose-postgres.yml index 92ea27935..d906328c1 100644 --- a/docker-compose-postgres.yml +++ b/docker-compose-postgres.yml @@ -3,17 +3,22 @@ version: '3.2' services: keto-migrate: - image: oryd/keto:v0.6.0-alpha.1 + image: oryd/keto:v0.7.0-alpha.0 links: - postgresd:postgresd + volumes: + - type: bind + source: . + target: /home/ory environment: - LOG_LEVEL=debug + - DSN=postgres://dbuser:secret@postgresd:5432/accesscontroldb?sslmode=disable command: migrate sql postgres://dbuser:secret@postgresd:5432/accesscontroldb?sslmode=disable restart: on-failure keto: - image: oryd/keto:v0.6.0-alpha.1 + image: oryd/keto:v0.7.0-alpha.0 links: - postgresd:postgresd depends_on: