Bakes init.sql, users.xml (with from_env password), and prometheus.xml into a custom ClickHouse image to eliminate 3 bind-mounted config files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 lines
222 B
Docker
5 lines
222 B
Docker
FROM clickhouse/clickhouse-server:latest
|
|
COPY init.sql /docker-entrypoint-initdb.d/init.sql
|
|
COPY users.xml /etc/clickhouse-server/users.d/default-user.xml
|
|
COPY prometheus.xml /etc/clickhouse-server/config.d/prometheus.xml
|