From d2c7d490f626729d31a814bd7f00c622944bef20 Mon Sep 17 00:00:00 2001 From: Lectom C Han Date: Thu, 12 Feb 2026 10:05:39 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=ED=85=8C=EC=9D=B4=EC=A7=95=20?= =?UTF-8?q?=EB=88=84=EB=9D=BD=20=EC=84=9C=EB=B9=84=EC=8A=A4=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/staging_pull_compose.template.yaml | 65 ++++++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/docker/staging_pull_compose.template.yaml b/docker/staging_pull_compose.template.yaml index 9bd90887..ac3e4471 100644 --- a/docker/staging_pull_compose.template.yaml +++ b/docker/staging_pull_compose.template.yaml @@ -35,6 +35,11 @@ services: CLICKHOUSE_PASSWORD: "${CLICKHOUSE_PASSWORD:-password}" networks: - baron_net + healthcheck: + test: ["CMD", "clickhouse-client", "--query", "SELECT 1"] + interval: 5s + timeout: 5s + retries: 5 redis: image: redis:7-alpine @@ -47,6 +52,11 @@ services: - redis_data:/data networks: - baron_net + healthcheck: + test: ["CMD", "redis-cli", "-p", "6389", "ping"] + interval: 5s + timeout: 5s + retries: 5 gateway: image: nginx:alpine @@ -155,6 +165,33 @@ services: - ory-net - hydranet + keto-migrate: + image: oryd/keto:${KETO_VERSION:-v25.4.0} + environment: + - DSN=postgres://${ORY_POSTGRES_USER}:${ORY_POSTGRES_PASSWORD}@postgres_ory:5432/${KETO_DB:-ory_keto}?sslmode=disable&max_conns=20 + volumes: + - ./docker/ory/keto:/etc/config/keto + command: ["migrate", "up", "-c", "/etc/config/keto/keto.yml", "--yes"] + depends_on: + postgres_ory: + condition: service_healthy + networks: + - ory-net + + keto: + image: oryd/keto:${KETO_VERSION:-v25.4.0} + container_name: ory_keto + environment: + - DSN=postgres://${ORY_POSTGRES_USER}:${ORY_POSTGRES_PASSWORD}@postgres_ory:5432/${KETO_DB:-ory_keto}?sslmode=disable&max_conns=20 + volumes: + - ./docker/ory/keto:/etc/config/keto + command: serve -c /etc/config/keto/keto.yml + depends_on: + keto-migrate: + condition: service_completed_successfully + networks: + - ory-net + oathkeeper: image: oryd/oathkeeper:${OATHKEEPER_VERSION:-v0.40.6} container_name: oathkeeper @@ -181,6 +218,18 @@ services: timeout: 5s retries: 5 + ory_clickhouse: + image: clickhouse/clickhouse-server:latest + container_name: ory_clickhouse + environment: + - CLICKHOUSE_USER=${ORY_CLICKHOUSE_USER:-ory} + - CLICKHOUSE_PASSWORD=${ORY_CLICKHOUSE_PASSWORD:-orypass} + volumes: + - ory_clickhouse_data:/var/lib/clickhouse + - ./docker/ory/clickhouse:/docker-entrypoint-initdb.d + networks: + - ory-net + backend: build: context: ./backend @@ -211,7 +260,20 @@ services: - CLICKHOUSE_USER=${CLICKHOUSE_USER:-baron} - CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD:-password} depends_on: - - infra_check + clickhouse: + condition: service_healthy + redis: + condition: service_healthy + oathkeeper: + condition: service_healthy + kratos: + condition: service_started + hydra: + condition: service_started + keto: + condition: service_started + infra_check: + condition: service_started networks: - baron_net - ory-net @@ -303,6 +365,7 @@ volumes: clickhouse_data: redis_data: ory_postgres_data: + ory_clickhouse_data: oathkeeper_logs: networks: