Skip to content

Commit

Permalink
fix(docker): auto-create otel database
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry authored and MasterPtato committed Feb 27, 2025
1 parent 1a6660e commit 41988e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker/dev-full/clickhouse/init/01-create-otel-table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE DATABASE IF NOT EXISTS otel;

9 changes: 8 additions & 1 deletion docker/dev-full/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,18 @@ services:

clickhouse:
restart: unless-stopped
image: clickhouse/clickhouse-server:23.10.1
image: clickhouse/clickhouse-server:25.1.5
volumes:
- clickhouse-data:/var/lib/clickhouse
- ./clickhouse/config.xml:/etc/clickhouse-server/config.d/config.xml
- ./clickhouse/users.xml:/etc/clickhouse-server/users.d/users.xml
- ./clickhouse/init:/docker-entrypoint-initdb.d
environment:
# Run migrations on startup
- CLICKHOUSE_ALWAYS_RUN_INITDB_SCRIPTS=true
# Configured in users.xml
- CLICKHOUSE_USER=system
- CLICKHOUSE_PASSWORD=default
networks:
- rivet-network
ports:
Expand Down

0 comments on commit 41988e1

Please sign in to comment.