支持配置 Docker 服务监听地址

This commit is contained in:
2026-07-12 02:14:05 +08:00
parent c208109ddf
commit db325ec413
2 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -10,7 +10,7 @@ services:
thief_clickhouse:
condition: service_healthy
ports:
- "${LISTEN_PORT:-8080}:8080"
- "${TOKENTHIEF_LISTEN_IP:-0.0.0.0}:${LISTEN_PORT:-8080}:8080"
environment:
LISTEN_ADDR: ":8080"
UPSTREAM_URL: "${UPSTREAM_URL:?set UPSTREAM_URL}"
@@ -42,6 +42,9 @@ services:
image: clickhouse/clickhouse-server:26.3
container_name: tokenthief-clickhouse
restart: unless-stopped
ports:
- "${CLICKHOUSE_LISTEN_IP:-0.0.0.0}:${CLICKHOUSE_HTTP_PORT:-8123}:8123"
- "${CLICKHOUSE_LISTEN_IP:-0.0.0.0}:${CLICKHOUSE_NATIVE_PORT:-9000}:9000"
environment:
CLICKHOUSE_USER: "${CLICKHOUSE_USER:-tokenthief}"
CLICKHOUSE_PASSWORD: "${CLICKHOUSE_PASSWORD:?set a strong CLICKHOUSE_PASSWORD}"