2022-05-26 11:36:44 +02:00
|
|
|
#
|
|
|
|
# docker-compose file used ONLY for local development.
|
|
|
|
# For more info, see:
|
|
|
|
# https://posthog.com/handbook/engineering/developing-locally
|
|
|
|
#
|
2023-07-25 16:02:28 +02:00
|
|
|
# PostHog has sunset support for self-hosted K8s deployments.
|
2023-07-24 19:44:44 +02:00
|
|
|
# See: https://posthog.com/blog/sunsetting-helm-support-posthog
|
2022-05-26 11:36:44 +02:00
|
|
|
#
|
2020-04-22 12:12:37 +02:00
|
|
|
|
|
|
|
services:
|
2024-08-13 14:38:35 +02:00
|
|
|
proxy:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: proxy
|
|
|
|
ports:
|
|
|
|
- 8010:8000
|
|
|
|
depends_on:
|
|
|
|
- replay-capture
|
|
|
|
- capture
|
|
|
|
extra_hosts:
|
|
|
|
- 'web:host-gateway'
|
2020-08-18 11:08:40 +02:00
|
|
|
db:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: db
|
2022-07-22 11:25:59 +02:00
|
|
|
ports:
|
|
|
|
- '5432:5432'
|
2022-12-13 14:25:18 +01:00
|
|
|
# something in the django app when running in dev mode
|
|
|
|
# (maybe only in Pycharm) keeps many idle transactions open
|
|
|
|
# and eventually kills postgres, these settings aim to stop that happening.
|
|
|
|
# They are only for DEV and should not be used in production.
|
|
|
|
command: postgres -c max_connections=1000 -c idle_in_transaction_session_timeout=300000
|
2022-06-28 13:50:57 +02:00
|
|
|
|
2020-08-18 11:08:40 +02:00
|
|
|
redis:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: redis
|
2022-07-22 11:25:59 +02:00
|
|
|
ports:
|
|
|
|
- '6379:6379'
|
2024-08-14 13:36:57 +02:00
|
|
|
redis7:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: redis7
|
|
|
|
ports:
|
|
|
|
- '6479:6379'
|
2022-06-28 13:50:57 +02:00
|
|
|
|
2024-01-17 17:38:14 +01:00
|
|
|
flower:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: flower
|
|
|
|
ports:
|
|
|
|
- '5555:5555'
|
|
|
|
|
2022-01-18 20:32:28 +01:00
|
|
|
clickhouse:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: clickhouse
|
2022-07-22 11:25:59 +02:00
|
|
|
ports:
|
|
|
|
- '8123:8123'
|
2024-10-01 18:37:05 +02:00
|
|
|
- '8443:8443'
|
2022-07-22 11:25:59 +02:00
|
|
|
- '9000:9000'
|
|
|
|
- '9440:9440'
|
|
|
|
- '9009:9009'
|
2022-01-18 20:32:28 +01:00
|
|
|
volumes:
|
2024-09-05 20:40:33 +02:00
|
|
|
# this new entrypoint file is to fix a bug detailed here https://github.com/ClickHouse/ClickHouse/pull/59991
|
|
|
|
# revert this when we upgrade clickhouse
|
|
|
|
- ./docker/clickhouse/entrypoint.sh:/entrypoint.sh
|
2022-06-22 23:24:03 +02:00
|
|
|
- ./posthog/idl:/idl
|
2022-01-18 20:32:28 +01:00
|
|
|
- ./docker/clickhouse/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
|
|
|
- ./docker/clickhouse/config.xml:/etc/clickhouse-server/config.xml
|
2022-10-07 09:23:38 +02:00
|
|
|
- ./docker/clickhouse/users-dev.xml:/etc/clickhouse-server/users.xml
|
2024-09-05 20:40:33 +02:00
|
|
|
- ./docker/clickhouse/user_defined_function.xml:/etc/clickhouse-server/user_defined_function.xml
|
|
|
|
- ./posthog/user_scripts:/var/lib/clickhouse/user_scripts
|
2024-02-29 22:36:46 +01:00
|
|
|
extra_hosts:
|
|
|
|
- 'host.docker.internal:host-gateway'
|
2024-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
- kafka
|
|
|
|
- zookeeper
|
2022-11-29 21:50:42 +01:00
|
|
|
|
2022-01-18 20:32:28 +01:00
|
|
|
zookeeper:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: zookeeper
|
2023-09-18 17:20:35 +02:00
|
|
|
ports:
|
|
|
|
- '2181:2181'
|
2022-06-28 13:50:57 +02:00
|
|
|
|
2022-01-18 20:32:28 +01:00
|
|
|
kafka:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: kafka
|
2022-07-22 11:25:59 +02:00
|
|
|
ports:
|
|
|
|
- '9092:9092'
|
2024-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
2022-03-21 12:49:43 +01:00
|
|
|
|
2024-02-27 12:44:08 +01:00
|
|
|
kafka_ui:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: kafka_ui
|
|
|
|
ports:
|
|
|
|
- '9093:8080'
|
2024-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
- kafka
|
2024-02-27 12:44:08 +01:00
|
|
|
|
2024-05-09 11:44:03 +02:00
|
|
|
objectstorage:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
2024-05-09 11:44:03 +02:00
|
|
|
service: objectstorage
|
2022-07-22 11:25:59 +02:00
|
|
|
ports:
|
|
|
|
- '19000:19000'
|
|
|
|
- '19001:19001'
|
2022-06-14 17:14:44 +02:00
|
|
|
|
|
|
|
maildev:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: maildev
|
2022-07-22 11:25:59 +02:00
|
|
|
ports:
|
|
|
|
- '1080:1080'
|
|
|
|
- '1025:1025'
|
2023-03-20 23:56:14 +01:00
|
|
|
|
2024-06-10 15:12:04 +02:00
|
|
|
webhook-tester:
|
|
|
|
image: tarampampam/webhook-tester:1.1.0
|
|
|
|
restart: on-failure
|
|
|
|
ports:
|
|
|
|
- '2080:2080'
|
|
|
|
environment:
|
|
|
|
- LISTEN_PORT=2080
|
|
|
|
|
2024-08-13 14:38:35 +02:00
|
|
|
# capture-rs
|
2023-10-25 17:58:12 +02:00
|
|
|
capture:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: capture
|
|
|
|
environment:
|
|
|
|
- DEBUG=1
|
2024-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
- redis
|
2024-08-08 17:57:13 +02:00
|
|
|
- kafka
|
|
|
|
|
2024-08-13 14:38:35 +02:00
|
|
|
# vector replay capture
|
2024-08-08 17:57:13 +02:00
|
|
|
replay-capture:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: replay-capture
|
|
|
|
depends_on:
|
|
|
|
- redis
|
2024-03-13 17:38:46 +01:00
|
|
|
- kafka
|
2023-10-25 17:58:12 +02:00
|
|
|
|
2024-09-24 20:32:07 +02:00
|
|
|
property-defs-rs:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: property-defs-rs
|
|
|
|
depends_on:
|
|
|
|
- kafka
|
|
|
|
|
2024-06-10 21:13:30 +02:00
|
|
|
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
|
|
|
|
|
2023-03-20 23:56:14 +01:00
|
|
|
# Temporal containers
|
|
|
|
elasticsearch:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: elasticsearch
|
|
|
|
expose:
|
|
|
|
- 9200
|
2023-06-16 08:43:14 +02:00
|
|
|
|
2023-03-20 23:56:14 +01:00
|
|
|
temporal:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: temporal
|
2024-04-17 14:55:01 +02:00
|
|
|
|
2023-03-20 23:56:14 +01:00
|
|
|
temporal-admin-tools:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: temporal-admin-tools
|
2024-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
- temporal
|
2023-03-20 23:56:14 +01:00
|
|
|
temporal-ui:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: temporal-ui
|
2024-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
temporal:
|
|
|
|
condition: service_started
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|