diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml new file mode 100644 index 0000000..82dc9ec --- /dev/null +++ b/deploy/docker-compose.yml @@ -0,0 +1,32 @@ +services: + gateway: + build: + context: ../ + dockerfile: Dockerfile + ports: + - "127.0.0.1:9281:8080" + environment: + - TZ=Asia/Seoul + # ==================================================================================== + # [AX Portal Mock 연동 설정] + # 현재 AX Portal API 서버가 실제 구동되어 있지 않으므로, Gateway가 엔드포인트를 + # 동적으로 받아올 수 있도록 로컬 가짜 포털(portal-mock)을 띄워 라우팅 주소를 제공합니다. + # 향후 실제 AX Portal이 배포되면 아래 주소를 진짜 포털 주소로 변경하시기 바랍니다. + # 예: - MCP_PORTAL_REGISTRY_URL=https://axhub.devjun.net/api/portal/registry + # ==================================================================================== + - MCP_PORTAL_REGISTRY_URL=http://portal-mock/api/portal/registry + restart: always + networks: + - prd-dap-net + + portal-mock: + image: nginx:alpine + volumes: + - ./portal-registry.json:/usr/share/nginx/html/api/portal/registry:ro + restart: always + networks: + - prd-dap-net + +networks: + prd-dap-net: + external: true diff --git a/deploy/portal-registry.json b/deploy/portal-registry.json new file mode 100644 index 0000000..c62bdc1 --- /dev/null +++ b/deploy/portal-registry.json @@ -0,0 +1,28 @@ +{ + "routes": [ + { + "routeKey": "cus", + "toolServices": [ + { "status": "ACTIVE", "serviceDomain": "http://was-cus:8084" } + ] + }, + { + "routeKey": "sal", + "toolServices": [ + { "status": "ACTIVE", "serviceDomain": "http://was-sal:8082" } + ] + }, + { + "routeKey": "pro", + "toolServices": [ + { "status": "ACTIVE", "serviceDomain": "http://was-pro:8085" } + ] + }, + { + "routeKey": "sys", + "toolServices": [ + { "status": "ACTIVE", "serviceDomain": "http://was-sys:8086" } + ] + } + ] +}