Skip to content

Commit 03be569

Browse files
committed
make ch creds more easily configurable
1 parent 7d17ecb commit 03be569

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

hosting/docker/.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ DEV_OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:8030/otel
5858
# - 8GB machine: NODE_MAX_OLD_SPACE_SIZE=6400
5959
# NODE_MAX_OLD_SPACE_SIZE=8192
6060

61+
# ClickHouse
62+
# - Do NOT use these defaults in production
63+
CLICKHOUSE_USER=default
64+
CLICKHOUSE_PASSWORD=password
65+
CLICKHOUSE_URL=http://default:password@clickhouse:8123?secure=false
66+
RUN_REPLICATION_CLICKHOUSE_URL=http://default:password@clickhouse:8123
67+
6168
# Docker Registry
6269
# - When testing locally, the default values should be fine
6370
# - When deploying to production, you will have to change these, especially the password and URL

hosting/docker/webapp/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ services:
143143
ports:
144144
- ${CLICKHOUSE_PUBLISH_IP:-127.0.0.1}:9090:9000
145145
environment:
146-
CLICKHOUSE_ADMIN_USER: default
147-
CLICKHOUSE_ADMIN_PASSWORD: password
146+
CLICKHOUSE_ADMIN_USER: ${CLICKHOUSE_USER:-default}
147+
CLICKHOUSE_ADMIN_PASSWORD: ${CLICKHOUSE_PASSWORD:-password}
148148
volumes:
149149
- clickhouse:/bitnami/clickhouse
150150
- ../clickhouse/override.xml:/bitnami/clickhouse/etc/config.d/override.xml:ro

0 commit comments

Comments
 (0)