支持配置 Docker 服务监听地址
This commit is contained in:
+4
-1
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user