Skip to content

Commit e62fd56

Browse files
committed
docs: add ClickHouse environment variables and Docker Compose setup to v4 migration
1 parent 885d2d3 commit e62fd56

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/migrating-from-v3.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,24 @@ const batch = await batch.retrieve(batchHandle.batchId);
304304
console.log(batch.runs);
305305
```
306306

307+
### ClickHouse
308+
309+
**V4 now uses ClickHouse by default** as the database for storing run traces and analytics data.
310+
If you're using Docker Compose, you need to update your `docker-compose.yml` to add the ClickHouse service and configure the webapp to connect to it. Update your configuration according to the [docker-compose.yml file on GitHub](https://github.com/triggerdotdev/trigger.dev/blob/main/hosting/docker/webapp/docker-compose.yml).
311+
312+
You need to configure the following environment variables:
313+
314+
```bash
315+
# ClickHouse configuration
316+
CLICKHOUSE_URL=http://default:password@clickhouse:8123?secure=false
317+
CLICKHOUSE_LOG_LEVEL=info
318+
319+
# Run replication
320+
RUN_REPLICATION_ENABLED=1
321+
RUN_REPLICATION_CLICKHOUSE_URL=http://default:password@clickhouse:8123
322+
RUN_REPLICATION_LOG_LEVEL=info
323+
```
324+
307325
### OpenTelemetry
308326

309327
We are now using newer versions of the OpenTelemetry packages. This means that if you're using custom exporters you may need to update the packages:

0 commit comments

Comments
 (0)