1
0
forked from baron/baron-sso

서비스 실행 오류 수정

This commit is contained in:
2026-01-28 15:40:19 +09:00
parent 60df7ba904
commit aa24471012
4 changed files with 170 additions and 10 deletions

View File

@@ -12,7 +12,11 @@ services:
networks:
- ory-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${ORY_POSTGRES_USER:-ory} -d ${KRATOS_DB:-ory_kratos}"]
test:
[
"CMD-SHELL",
"pg_isready -U ${ORY_POSTGRES_USER:-ory} -d ${KRATOS_DB:-ory_kratos}",
]
interval: 5s
timeout: 5s
retries: 5
@@ -91,7 +95,7 @@ services:
image: oryd/hydra:${HYDRA_VERSION:-v25.4.0}
environment:
- DSN=postgres://${ORY_POSTGRES_USER}:${ORY_POSTGRES_PASSWORD}@postgres_ory:5432/${HYDRA_DB}?sslmode=disable&max_conns=20
command: migrate sql -e --yes
command: migrate sql up -e --yes
depends_on:
postgres_ory:
condition: service_healthy
@@ -126,7 +130,7 @@ services:
- DSN=postgres://${ORY_POSTGRES_USER}:${ORY_POSTGRES_PASSWORD}@postgres_ory:5432/${KETO_DB}?sslmode=disable&max_conns=20
volumes:
- ./docker/ory/keto:/etc/config/keto
command: migrate up -c /etc/config/keto/keto.yml --yes
command: ["migrate", "up", "-c", "/etc/config/keto/keto.yml", "--yes"]
depends_on:
postgres_ory:
condition: service_healthy