forked from baron/baron-sso
ory용 MCP 제작, devfront/adminfront 백엔드 연결
This commit is contained in:
@@ -36,7 +36,7 @@ services:
|
||||
container_name: ory_kratos
|
||||
ports:
|
||||
- "${KRATOS_PUBLIC_PORT:-4433}:4433"
|
||||
- "${KRATOS_ADMIN_PORT:-4434}:4434"
|
||||
- "${KRATOS_ADMINFRONT_PORT:-4434}:4434"
|
||||
environment:
|
||||
- DSN=postgres://${ORY_POSTGRES_USER}:${ORY_POSTGRES_PASSWORD}@postgres_ory:5432/${KRATOS_DB}?sslmode=disable&max_conns=20
|
||||
- COOKIE_SECRET=${COOKIE_SECRET:-localcookie123}
|
||||
@@ -50,6 +50,22 @@ services:
|
||||
- ory-net
|
||||
- kratosnet
|
||||
|
||||
kratos-mcp-server:
|
||||
build:
|
||||
context: ./mcp/kratos-mcp
|
||||
container_name: mcp_ory_kratos
|
||||
profiles:
|
||||
- mcp
|
||||
stdin_open: true
|
||||
tty: true
|
||||
init: true
|
||||
environment:
|
||||
- KRATOS_ADMIN_URL=http://kratos:4434
|
||||
depends_on:
|
||||
- kratos
|
||||
networks:
|
||||
- ory-net
|
||||
|
||||
kratos-ui:
|
||||
image: oryd/kratos-selfservice-ui-node:${KRATOS_UI_NODE_VERSION:-v25.4.0}
|
||||
container_name: ory_kratos_ui
|
||||
@@ -83,7 +99,7 @@ services:
|
||||
container_name: ory_hydra
|
||||
ports:
|
||||
- "${HYDRA_PUBLIC_PORT:-4441}:4444"
|
||||
- "${HYDRA_ADMIN_PORT:-4445}:4445"
|
||||
- "${HYDRA_ADMINFRONT_PORT:-4445}:4445"
|
||||
environment:
|
||||
- DSN=postgres://${ORY_POSTGRES_USER}:${ORY_POSTGRES_PASSWORD}@postgres_ory:5432/${HYDRA_DB}?sslmode=disable&max_conns=20
|
||||
- URLS_SELF_ISSUER=${BACKEND_URL:-http://127.0.0.1:3000}
|
||||
@@ -100,6 +116,23 @@ services:
|
||||
- ory-net
|
||||
- hydranet
|
||||
|
||||
hydra-mcp-server:
|
||||
build:
|
||||
context: ./mcp/hydra-mcp
|
||||
container_name: mcp_ory_hydra
|
||||
profiles:
|
||||
- mcp
|
||||
stdin_open: true
|
||||
tty: true
|
||||
init: true
|
||||
environment:
|
||||
- HYDRA_PUBLIC_URL=http://hydra:4444
|
||||
- HYDRA_ADMIN_URL=http://hydra:4445
|
||||
depends_on:
|
||||
- hydra
|
||||
networks:
|
||||
- ory-net
|
||||
|
||||
# --- Keto ---
|
||||
keto-migrate:
|
||||
image: oryd/keto:${KETO_VERSION:-v25.4.0}
|
||||
@@ -171,14 +204,24 @@ services:
|
||||
environment:
|
||||
- HYDRA_ADMIN_URL=http://hydra:4445
|
||||
command: >
|
||||
clients create
|
||||
/bin/sh -c "
|
||||
hydra clients create
|
||||
--endpoint http://hydra:4445
|
||||
--id adminfront
|
||||
--secret admin-secret
|
||||
--grant-types authorization_code,refresh_token
|
||||
--response-types code
|
||||
--scope openid,offline_access,profile,email
|
||||
--callbacks http://localhost:5000/callback
|
||||
--callbacks http://localhost:5000/callback;
|
||||
hydra clients create
|
||||
--endpoint http://hydra:4445
|
||||
--id devfront
|
||||
--grant-types authorization_code,refresh_token
|
||||
--response-types code
|
||||
--scope openid,offline_access,profile,email
|
||||
--token-endpoint-auth-method none
|
||||
--callbacks http://localhost:5174/callback;
|
||||
"
|
||||
depends_on:
|
||||
ory_stack_check:
|
||||
condition: service_completed_successfully
|
||||
|
||||
Reference in New Issue
Block a user