curved-florist-98287
11/20/2023, 12:44 PMchilly-king-10285
11/20/2023, 12:44 PMchilly-king-10285
11/20/2023, 12:45 PMyaml version: "3.7" volumes: postgres-db: services: postgresd: image: postgres:9.6 ports: - "5432:5432" volumes: - type: volume source: postgres-db target: /var/lib/postgresql/data read_only: false environment: - PGDATA=/var/lib/postgresql/data/pgdata - POSTGRES_PASSWORD=secret - POSTGRES_USER=kratos keto-migrate: image: keto build: context: ../keto dockerfile: ./.docker/Dockerfile-build environment: - DSN=<postgres://keto:secret@postgresd:5432/keto?sslmode=disable&max_conns=20&max_idle_conns=4> volumes: - type: bind source: path-to-keto-config target: /etc/config/keto command: migrate sql -e --yes depends_on: - postgresd keto: image: keto build: context: ../keto dockerfile: ./.docker/Dockerfile-build depends_on: - keto-migrate ports: - "4433:4433" # public - "4434:4434" # admin command: serve -c /etc/config/keto/keto.yml --watch-courier --dev volumes: - type: bind source: path-to-keto-config target: /etc/config/keto
Please replace path-to-keto-config
with the actual path to your Ory Keto configuration file and adjust the other settings as necessary for your environment ([source](https://www.ory.sh/docs/kratos/debug/debug-docker-delve-ory-kratos)).