Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Refresh a supabase example #60

Closed
wants to merge 16 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: move versions to env in compose
tetra12 committed Nov 24, 2022
commit ab51db02cb9000e57705bae6c8ab323b581b301d
41 changes: 21 additions & 20 deletions kratos-keto-oathkeeper-supabase/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: "3.7"
version: "3.8"

services:
oathkeeper:
image: oryd/oathkeeper:v0.38
image: oryd/oathkeeper:$OATHKEEPER_VER
depends_on:
- kratos
ports:
- 8080:4455
- 4456:4456
command: serve proxy -c "/etc/config/oathkeeper/oathkeeper.yml"
command: serve proxy -c /etc/config/oathkeeper/oathkeeper.yml
environment:
- LOG_LEVEL=debug
restart: on-failure
@@ -18,7 +18,7 @@ services:
- ./oathkeeper:/etc/config/oathkeeper

postgres-kratos:
image: postgres:9.6
image: postgres:$POSTGRES_VER
environment:
- POSTGRES_USER=kratos
- POSTGRES_PASSWORD=secret
@@ -27,7 +27,7 @@ services:
- intranet

kratos-migrate:
image: oryd/kratos:v0.8.0-alpha.3
image: oryd/kratos:$KRATOS_VER
links:
- postgres-kratos:postgres-kratos
environment:
@@ -41,14 +41,14 @@ services:
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes

kratos:
image: oryd/kratos:v0.8.0-alpha.3
image: oryd/kratos:$KRATOS_VER
links:
- postgres-kratos:postgres-kratos
environment:
- DSN=postgres://kratos:secret@postgres-kratos:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4
ports:
- "4433:4433"
- "4434:4434"
- 4433:4433
- 4434:4434
volumes:
- type: bind
source: ./kratos
@@ -65,19 +65,19 @@ services:
networks:
- intranet
ports:
- "4455:3000"
- 4455:3000
restart: on-failure

mailslurper:
image: oryd/mailslurper:latest-smtps
ports:
- "4436:4436"
- "4437:4437"
- 4436:4436
- 4437:4437
networks:
- intranet

postgres-keto:
image: postgres:9.6
image: postgres:$POSTGRES_VER
environment:
- POSTGRES_USER=keto
- POSTGRES_PASSWORD=secret
@@ -86,23 +86,23 @@ services:
- intranet

keto-migrate:
image: oryd/keto:v0.7.0-alpha.1
image: oryd/keto:$KETO_VER
volumes:
- type: bind
source: ./keto
target: /home/ory
environment:
- LOG_LEVEL=debug
- DSN=postgres://keto:secret@postgres-keto:5432/keto?sslmode=disable&max_conns=20&max_idle_conns=4
command: ["migrate", "up", "-y"]
command: [ migrate, up, -y ]
restart: on-failure
depends_on:
- postgres-kratos
networks:
- intranet

keto-perms:
image: oryd/keto:v0.7.0-alpha.1
image: oryd/keto:$KETO_VER
volumes:
- type: bind
source: ./keto
@@ -118,14 +118,14 @@ services:
- intranet

keto:
image: oryd/keto:v0.7.0-alpha.1
image: oryd/keto:$KETO_VER
volumes:
- type: bind
source: ./keto
target: /home/ory
ports:
- "4466:4466"
- "4467:4467"
- 4466:4466
- 4467:4467
depends_on:
- keto-migrate
environment:
@@ -135,9 +135,9 @@ services:
command: serve

postgres-shorts:
image: postgres:9.6
image: postgres:$POSTGRES_VER
ports:
- "5432:5432"
- 5432:5432
environment:
- POSTGRES_USER=shorts
- POSTGRES_PASSWORD=notsecureatall
@@ -156,5 +156,6 @@ services:
volumes:
kratos-sqlite:


networks:
intranet: