diff --git a/docker-compose.base.yml b/docker-compose.base.yml index 2edb94dd9bc..15adbe9d5fe 100644 --- a/docker-compose.base.yml +++ b/docker-compose.base.yml @@ -115,6 +115,13 @@ services: CLICKHOUSE_SECURE: 'false' CLICKHOUSE_VERIFY: 'false' + livestream: + image: 'ghcr.io/posthog/livestream:main' + restart: on-failure + depends_on: + kafka: + condition: service_started + migrate: <<: *worker command: sh -c " diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index e45e3c3997e..f79697c73fb 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -117,6 +117,17 @@ services: - redis - kafka + livestream: + extends: + file: docker-compose.base.yml + service: livestream + environment: + - JWT.TOKEN=${SECRET_KEY} + ports: + - '8666:8080' + volumes: + - ./docker/livestream/configs-dev.yml:/configs/configs.yml + # Temporal containers elasticsearch: extends: diff --git a/docker/livestream/configs-dev.yml b/docker/livestream/configs-dev.yml new file mode 100644 index 00000000000..5f7daf3ac52 --- /dev/null +++ b/docker/livestream/configs-dev.yml @@ -0,0 +1,14 @@ +prod: false +tailscale: + controlUrl: + hostname: 'live-events-dev' +kafka: + brokers: 'kafka:9092' + topic: 'events_plugin_ingestion' + group_id: 'livestream-dev' +mmdb: + path: 'GeoLite2-City.mmdb' +jwt: + token: '' +postgres: + url: 'postgres://posthog:posthog@db:5432/posthog' diff --git a/frontend/__snapshots__/scenes-app-insights--trends-line-edit--light.png b/frontend/__snapshots__/scenes-app-insights--trends-line-edit--light.png index fb9a44bbb9c..0510a04db24 100644 Binary files a/frontend/__snapshots__/scenes-app-insights--trends-line-edit--light.png and b/frontend/__snapshots__/scenes-app-insights--trends-line-edit--light.png differ diff --git a/frontend/src/lib/utils/apiHost.ts b/frontend/src/lib/utils/apiHost.ts index bece9637612..75d18c2bf06 100644 --- a/frontend/src/lib/utils/apiHost.ts +++ b/frontend/src/lib/utils/apiHost.ts @@ -15,6 +15,5 @@ export function liveEventsHostOrigin(): string | null { } else if (appOrigin === 'https://eu.posthog.com') { return 'https://live.eu.posthog.com' } - // TODO(@zach): add dev and local env support - return null + return 'http://localhost:8666' }