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:
|
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'
|
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'
|
|
|
|
- '9000:9000'
|
|
|
|
- '9440:9440'
|
|
|
|
- '9009:9009'
|
2022-01-18 20:32:28 +01:00
|
|
|
volumes:
|
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
|
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'
|
2022-03-21 12:49:43 +01:00
|
|
|
|
2022-05-20 10:56:50 +02:00
|
|
|
object_storage:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: object_storage
|
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
|
|
|
|
2023-10-25 17:58:12 +02:00
|
|
|
# Optional capture
|
|
|
|
capture:
|
|
|
|
profiles: ['capture-rs']
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: capture
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
environment:
|
|
|
|
- DEBUG=1
|
|
|
|
|
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
|
|
|
|
ports:
|
|
|
|
- 7233:7233
|
|
|
|
temporal-admin-tools:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: temporal-admin-tools
|
|
|
|
temporal-ui:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: temporal-ui
|
|
|
|
ports:
|
|
|
|
- 8081:8080
|