2020-09-09 01:12:27 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
2020-10-22 10:34:30 +02:00
|
|
|
image: postgres:11-alpine
|
2020-09-09 01:12:27 +02:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: posthog
|
|
|
|
POSTGRES_DB: posthog
|
|
|
|
POSTGRES_PASSWORD: posthog
|
|
|
|
ports:
|
|
|
|
- '5439:5432'
|
|
|
|
redis:
|
|
|
|
image: 'redis:alpine'
|
|
|
|
ports:
|
|
|
|
- '6379:6379'
|
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: dev.Dockerfile
|
2020-12-08 11:44:39 +01:00
|
|
|
command: ./ee/bin/docker-ch-dev-web
|
2020-09-09 01:12:27 +02:00
|
|
|
volumes:
|
|
|
|
- ..:/code
|
|
|
|
ports:
|
|
|
|
- '8000:8000'
|
|
|
|
- '8234:8234'
|
|
|
|
environment:
|
|
|
|
DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog'
|
|
|
|
CLICKHOUSE_HOST: 'clickhouse'
|
|
|
|
CLICKHOUSE_DATABASE: 'posthog'
|
2021-01-07 16:21:16 +01:00
|
|
|
CLICKHOUSE_SECURE: 'false'
|
|
|
|
CLICKHOUSE_VERIFY: 'false'
|
2020-09-17 20:09:41 +02:00
|
|
|
KAFKA_URL: 'kafka://kafka'
|
2020-09-09 01:12:27 +02:00
|
|
|
REDIS_URL: 'redis://redis:6379/'
|
2020-10-01 15:47:35 +02:00
|
|
|
SECRET_KEY: 'alsdfjiosdajfklalsdjkf'
|
2020-09-09 01:12:27 +02:00
|
|
|
DEBUG: 'true'
|
|
|
|
PRIMARY_DB: 'clickhouse'
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2020-12-17 05:35:05 +01:00
|
|
|
- clickhouse
|
|
|
|
- kafka
|
2020-09-09 01:12:27 +02:00
|
|
|
links:
|
|
|
|
- db:db
|
|
|
|
- redis:redis
|
2021-03-02 11:57:19 +01:00
|
|
|
- kafka:kafka
|
2020-09-09 01:12:27 +02:00
|
|
|
worker:
|
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: dev.Dockerfile
|
2020-12-17 01:35:19 +01:00
|
|
|
command: ./bin/docker-worker-celery --with-scheduler
|
2020-09-09 01:12:27 +02:00
|
|
|
volumes:
|
|
|
|
- ..:/code
|
|
|
|
environment:
|
|
|
|
DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog'
|
|
|
|
CLICKHOUSE_HOST: 'clickhouse'
|
|
|
|
CLICKHOUSE_DATABASE: 'posthog'
|
2021-01-07 16:21:16 +01:00
|
|
|
CLICKHOUSE_SECURE: 'false'
|
|
|
|
CLICKHOUSE_VERIFY: 'false'
|
2020-09-17 20:09:41 +02:00
|
|
|
KAFKA_URL: 'kafka://kafka'
|
2020-09-09 01:12:27 +02:00
|
|
|
REDIS_URL: 'redis://redis:6379/'
|
2021-02-04 16:17:24 +01:00
|
|
|
SECRET_KEY: 'alsdfjiosdajfklalsdjkf'
|
2020-09-09 01:12:27 +02:00
|
|
|
DEBUG: 'true'
|
|
|
|
PRIMARY_DB: 'clickhouse'
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
links:
|
|
|
|
- db:db
|
|
|
|
- redis:redis
|
2021-03-02 11:57:19 +01:00
|
|
|
- kafka:kafka
|
2020-12-17 01:35:19 +01:00
|
|
|
plugins:
|
2021-03-03 12:27:44 +01:00
|
|
|
image: posthog/plugin-server:0.11.3
|
2021-01-21 15:39:44 +01:00
|
|
|
restart: on-failure
|
2020-12-17 01:35:19 +01:00
|
|
|
environment:
|
|
|
|
DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog'
|
2021-01-07 16:21:16 +01:00
|
|
|
KAFKA_ENABLED: 'true'
|
|
|
|
KAFKA_HOSTS: 'kafka:9092'
|
2020-12-17 01:35:19 +01:00
|
|
|
REDIS_URL: 'redis://redis:6379/'
|
2021-03-02 11:57:19 +01:00
|
|
|
CLICKHOUSE_HOST: 'clickhouse'
|
2020-12-17 01:35:19 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2021-01-21 15:39:44 +01:00
|
|
|
- clickhouse
|
|
|
|
- kafka
|
2020-12-17 01:35:19 +01:00
|
|
|
links:
|
|
|
|
- db:db
|
|
|
|
- redis:redis
|
2021-03-02 11:57:19 +01:00
|
|
|
- clickhouse:clickhouse
|
|
|
|
- kafka:kafka
|
2020-09-09 01:12:27 +02:00
|
|
|
clickhouse:
|
|
|
|
image: yandex/clickhouse-server
|
2021-01-21 15:39:44 +01:00
|
|
|
depends_on:
|
|
|
|
- kafka
|
2020-09-09 01:12:27 +02:00
|
|
|
ports:
|
|
|
|
- '8123:8123'
|
|
|
|
- '9000:9000'
|
|
|
|
- '9440:9440'
|
|
|
|
- '9009:9009'
|
2020-11-03 20:37:12 +01:00
|
|
|
volumes:
|
|
|
|
- ./idl:/idl
|
|
|
|
- ../docker/clickhouse/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
2021-01-21 01:51:11 +01:00
|
|
|
- ../docker/clickhouse/config.xml:/etc/clickhouse-server/config.xml
|
2020-09-16 05:04:38 +02:00
|
|
|
zookeeper:
|
|
|
|
image: wurstmeister/zookeeper
|
|
|
|
kafka:
|
|
|
|
image: wurstmeister/kafka
|
2021-01-21 15:39:44 +01:00
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
2020-09-16 05:04:38 +02:00
|
|
|
ports:
|
|
|
|
- '9092:9092'
|
|
|
|
environment:
|
|
|
|
KAFKA_ADVERTISED_HOST_NAME: kafka
|
|
|
|
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
|