From 4a7838a0c77ab4302e6661d626cdc622f0ed8498 Mon Sep 17 00:00:00 2001 From: Neil Kakkar Date: Mon, 21 Jun 2021 14:57:59 +0100 Subject: [PATCH] Add docs for running just Clickhouse in docker --- contents/handbook/engineering/ee-setup.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/contents/handbook/engineering/ee-setup.md b/contents/handbook/engineering/ee-setup.md index a51e123d6e1d..ca0a732f6d22 100644 --- a/contents/handbook/engineering/ee-setup.md +++ b/contents/handbook/engineering/ee-setup.md @@ -45,3 +45,14 @@ Currently for internal use only. - Tests: - All the same, except skip `DEBUG=1` in the env settings. - Set as the "target" in run configuration `ee/clickhouse` + +### Running everything but ClickHouse locally +- Follow the [local development setup without Docker](/docs/developing-locally) +- Run `docker-compose -f ee/docker-compose.ch.yml up clickhouse` +- In `/etc/hosts`, add a line with `127.0.0.1 kafka clickhouse` +- Set environment variables: + - `export PRIMARY_DB=clickhouse` + - `export CLICKHOUSE_SECURE=False` + - `export KAFKA_ENABLED=true` + - `export KAFKA_HOSTS=localhost:9092` +- Run PostHog: `./bin/start`