2022-11-30 18:49:17 +01:00
|
|
|
#
|
|
|
|
# docker-compose file used ONLY for local development.
|
|
|
|
# This file is the same as `docker-compose.dev.yml` except it boots the services in containers instead of you running them locally
|
|
|
|
# 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-11-30 18:49:17 +01: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
|
|
|
|
- web
|
2022-11-30 18:49:17 +01:00
|
|
|
db:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: db
|
|
|
|
ports:
|
|
|
|
- '5432:5432'
|
|
|
|
|
|
|
|
redis:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: redis
|
|
|
|
ports:
|
|
|
|
- '6379:6379'
|
|
|
|
|
|
|
|
clickhouse:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: clickhouse
|
|
|
|
ports:
|
|
|
|
- '8123:8123'
|
|
|
|
- '9000:9000'
|
|
|
|
- '9440:9440'
|
|
|
|
- '9009:9009'
|
|
|
|
volumes:
|
|
|
|
- ./posthog/idl:/idl
|
|
|
|
- ./docker/clickhouse/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
|
|
|
- ./docker/clickhouse/config.xml:/etc/clickhouse-server/config.xml
|
|
|
|
- ./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-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
- kafka
|
|
|
|
- zookeeper
|
2022-11-30 18:49:17 +01:00
|
|
|
|
|
|
|
zookeeper:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: zookeeper
|
|
|
|
|
|
|
|
kafka:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: kafka
|
|
|
|
ports:
|
|
|
|
- '9092:9092'
|
2024-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
2022-11-30 18:49:17 +01:00
|
|
|
|
2024-05-09 11:44:03 +02:00
|
|
|
objectstorage:
|
2022-11-30 18:49:17 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
2024-05-09 11:44:03 +02:00
|
|
|
service: objectstorage
|
2022-11-30 18:49:17 +01:00
|
|
|
ports:
|
|
|
|
- '19000:19000'
|
|
|
|
- '19001:19001'
|
|
|
|
|
|
|
|
maildev:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: maildev
|
|
|
|
ports:
|
|
|
|
- '1080:1080'
|
|
|
|
- '1025:1025'
|
|
|
|
|
2024-06-10 15:12:04 +02:00
|
|
|
webhook-tester:
|
|
|
|
image: tarampampam/webhook-tester:1.1.0
|
|
|
|
restart: on-failure
|
|
|
|
ports:
|
|
|
|
- '2080:2080'
|
|
|
|
environment:
|
|
|
|
- PORT=2080
|
|
|
|
|
2022-11-30 18:49:17 +01:00
|
|
|
worker:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: worker
|
|
|
|
build: .
|
2023-03-20 23:56:14 +01:00
|
|
|
volumes:
|
|
|
|
- .:/app/posthog
|
|
|
|
environment:
|
|
|
|
- DEBUG=1
|
|
|
|
- PLUGIN_SERVER_IDLE=1
|
2022-11-30 18:49:17 +01:00
|
|
|
|
|
|
|
web:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: web
|
|
|
|
ports:
|
2023-03-20 23:56:14 +01:00
|
|
|
- 8000:8000
|
2022-11-30 18:49:17 +01:00
|
|
|
build: .
|
2024-05-03 13:52:59 +02:00
|
|
|
command: ./bin/docker-server-unit
|
2023-03-20 23:56:14 +01:00
|
|
|
volumes:
|
|
|
|
- .:/app/posthog
|
|
|
|
environment:
|
|
|
|
- DEBUG=1
|
2024-05-03 13:52:59 +02:00
|
|
|
- OBJECT_STORAGE_ENDPOINT=http://objectstorage:19000
|
|
|
|
- POSTHOG_SKIP_MIGRATION_CHECKS=true
|
|
|
|
- JS_URL=http://localhost:8000
|
2024-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
- clickhouse
|
|
|
|
- kafka
|
2024-05-03 13:52:59 +02:00
|
|
|
links:
|
2024-05-09 11:44:03 +02:00
|
|
|
- objectstorage:objectstorage
|
2022-11-30 18:49:17 +01:00
|
|
|
|
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
|
|
|
|
- kafka
|
2023-10-25 17:58:12 +02:00
|
|
|
|
2024-08-13 14:38:35 +02:00
|
|
|
replay-capture:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: replay-capture
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- kafka
|
|
|
|
|
2024-09-24 20:32:07 +02:00
|
|
|
property-defs-rs:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: property-defs-rs
|
|
|
|
depends_on:
|
|
|
|
- kafka
|
|
|
|
|
2022-11-30 18:49:17 +01:00
|
|
|
plugins:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: plugins
|
|
|
|
build: .
|
2023-03-20 23:56:14 +01:00
|
|
|
volumes:
|
|
|
|
- .:/app/posthog
|
|
|
|
environment:
|
|
|
|
- DOCKER=1
|
2024-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
- clickhouse
|
|
|
|
- kafka
|
2024-05-09 11:44:03 +02:00
|
|
|
- objectstorage
|
2023-03-20 23:56:14 +01:00
|
|
|
|
|
|
|
migrate:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: migrate
|
|
|
|
build: .
|
|
|
|
volumes:
|
|
|
|
- .:/app/posthog
|
|
|
|
environment:
|
|
|
|
- DEBUG=1
|
|
|
|
|
|
|
|
# Temporal containers
|
|
|
|
elasticsearch:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: elasticsearch
|
|
|
|
expose:
|
|
|
|
- 9200
|
|
|
|
temporal:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: temporal
|
|
|
|
ports:
|
|
|
|
- 7233:7233
|
|
|
|
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
|
|
|
|
ports:
|
|
|
|
- 8081:8080
|
2024-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
temporal:
|
|
|
|
condition: service_started
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2023-03-20 23:56:14 +01:00
|
|
|
temporal-django-worker:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: temporal-django-worker
|
|
|
|
build: .
|
|
|
|
volumes:
|
|
|
|
- .:/app/posthog
|
2024-03-13 17:38:46 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
- clickhouse
|
|
|
|
- kafka
|
2024-05-09 11:44:03 +02:00
|
|
|
- objectstorage
|
2024-03-18 17:14:44 +01:00
|
|
|
- temporal
|