Repository navigation
Conversation
两处端口默认映射到 127.0.0.1:app 与演示口令的 PostgreSQL 都不再对 同网段开放。内网共享改为显式 HOST_BIND=0.0.0.0(仅 app),数据库端口 保持环回。文档同步绑定口径,配置字典新增 HOST_BIND(compose 层变量)。
Contributor
Author
评审轮 E2E 证据(PR #239 / issue #219 R-94 compose 默认环回绑定)验证方式(配置/文档 PR,无 Go/TS 代码改动;用
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
做了什么
docker-compose.allinone.yml两个端口默认只绑127.0.0.1:PostgreSQL 固定127.0.0.1:5432:5432,app 改为${HOST_BIND:-127.0.0.1}:${PORT:-23352}:${PORT:-23352}。HOST_BIND(默认127.0.0.1);数据库端口不受它影响,保持环回。quick-start.md、docker.md、configuration.md的口径与配置字典条目。怎么做
只改端口发布地址,不动容器内监听地址(仍是
0.0.0.0,由 compose 决定对外绑定)。文档不引用尚未合入的AUTH_ENFORCE(当前代码里不存在该变量),改为准确描述现状:资源端点暂无强制认证,因此默认关闭对外暴露。测试证据
docker compose -f docker-compose.allinone.yml config:apphost_ip: 127.0.0.1、postgreshost_ip: 127.0.0.1。HOST_BIND=0.0.0.0 docker compose -f docker-compose.allinone.yml config:apphost_ip: 0.0.0.0,postgres 仍127.0.0.1。/datasets从真实 API 加载出数据集列表;/charts深链正常;GET /api/__nope__返回 JSON 信封而非 HTML。