fix(deploy): 컨테이너→같은 서버 Phoenix 는 host.docker.internal(host-gateway) — 공인 IP 는 컨테이너 안에서 안 닿음
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
ea1fd350da
commit
9c064615a9
@@ -32,6 +32,6 @@ MCP_PORT=3200
|
||||
MCP_API_KEY=
|
||||
|
||||
# 관측(Phoenix) — deploy/phoenix 로 띄운 주소. 비우면 안 보냄
|
||||
PHOENIX_HOST=http://20.200.170.37:6006
|
||||
PHOENIX_HOST=http://host.docker.internal:6006 # 같은 서버 Phoenix. 다른 서버면 그 사설 IP
|
||||
TRACE_PROJECT=codeassist
|
||||
PHOENIX_UI_PASSWORD=
|
||||
|
||||
@@ -31,5 +31,5 @@ AGENTS.md·위키·커스텀 도구가 그대로 먹고, be 가 렌더한 `openc
|
||||
- LLM: `.env` 에 `AAF_FABRIX_*` 가 없으면 렌더러가 OpenRouter 템플릿(`opencode/opencode.openrouter.json.tmpl`)을 고름. 고객사는 FabriX 템플릿.
|
||||
- DB: `DB_HOST` 비우면 SQLite(`be_data` 볼륨). 팀 PostgreSQL 쓰려면 DB_* 채움(스키마 `codeassist`).
|
||||
- SAP 조회(MCP): 같은 서버에 abap-opencode compose 가 떠 있으면 그 `mcp` 컨테이너를 쓸 수 있음 — 두 compose 를 같은 네트워크로 묶어야 함(아직 안 함). 비우면 꺼짐.
|
||||
- 관측: `PHOENIX_HOST=http://<서버>:6006` (`deploy/phoenix/docker-compose.yml` 로 띄운 것). 프로젝트 `codeassist`.
|
||||
- 관측: `PHOENIX_HOST=http://host.docker.internal:6006`(같은 서버; 공인 IP 는 컨테이너 안에서 안 닿음) (`deploy/phoenix/docker-compose.yml` 로 띄운 것). 프로젝트 `codeassist`.
|
||||
- 앱(Tauri) 쪽은 `2_frontend/.env.production` 의 `VITE_API_BASE_URL` 을 이 서버로 바꿔 빌드해야 붙음.
|
||||
|
||||
@@ -15,6 +15,8 @@ services:
|
||||
BACKEND_HOST: be # 렌더된 opencode.json 의 게이트웨이 주소(고객사 모드일 때)
|
||||
BACKEND_PORT: "8080"
|
||||
MCP_HOST: ${MCP_HOST:-mcp}
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway" # 같은 서버의 Phoenix(:6006) 를 host.docker.internal 로 — 공인 IP 는 컨테이너 안에서 안 닿음(Azure)
|
||||
volumes:
|
||||
- ../../opencode:/app/opencode # AGENTS.md·.opencode·wiki·렌더 결과(opencode.json)
|
||||
- be_data:/app/data # SQLite(DB_HOST 비울 때)·auth secret
|
||||
|
||||
Reference in New Issue
Block a user