mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 04:12:23 +01:00
0223d7ab86
* feat: Add Temporal to the dev and hobby stacks * disable elastic for hobby because of resources * checkpoint * update requirements * worker is up, but without the sandbox * ensure temporal does not depend on elastic * Feedbacked * pip-compile dev * mypy fixes * add a bit of colorful logging * add django temporal worker to the mix * checkpoint for dev-full docker * Working on docker-full, but checkpointing for now * add migration bits for full
143 lines
3.4 KiB
YAML
143 lines
3.4 KiB
YAML
#
|
|
# 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
|
|
#
|
|
# If you are looking at self-hosted deployment options check
|
|
# https://posthog.com/docs/self-host
|
|
#
|
|
|
|
services:
|
|
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
|
|
|
|
zookeeper:
|
|
extends:
|
|
file: docker-compose.base.yml
|
|
service: zookeeper
|
|
|
|
kafka:
|
|
extends:
|
|
file: docker-compose.base.yml
|
|
service: kafka
|
|
ports:
|
|
- '9092:9092'
|
|
|
|
object_storage:
|
|
extends:
|
|
file: docker-compose.base.yml
|
|
service: object_storage
|
|
ports:
|
|
- '19000:19000'
|
|
- '19001:19001'
|
|
|
|
maildev:
|
|
extends:
|
|
file: docker-compose.base.yml
|
|
service: maildev
|
|
ports:
|
|
- '1080:1080'
|
|
- '1025:1025'
|
|
|
|
worker:
|
|
extends:
|
|
file: docker-compose.base.yml
|
|
service: worker
|
|
build: .
|
|
volumes:
|
|
- .:/app/posthog
|
|
environment:
|
|
- DEBUG=1
|
|
- PLUGIN_SERVER_IDLE=1
|
|
|
|
web:
|
|
extends:
|
|
file: docker-compose.base.yml
|
|
service: web
|
|
ports:
|
|
- 8000:8000
|
|
build: .
|
|
volumes:
|
|
- .:/app/posthog
|
|
environment:
|
|
- DEBUG=1
|
|
|
|
plugins:
|
|
extends:
|
|
file: docker-compose.base.yml
|
|
service: plugins
|
|
build: .
|
|
volumes:
|
|
- .:/app/posthog
|
|
environment:
|
|
- DEBUG=1
|
|
- DOCKER=1
|
|
|
|
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
|
|
temporal-ui:
|
|
extends:
|
|
file: docker-compose.base.yml
|
|
service: temporal-ui
|
|
ports:
|
|
- 8081:8080
|
|
temporal-django-worker:
|
|
extends:
|
|
file: docker-compose.base.yml
|
|
service: temporal-django-worker
|
|
build: .
|
|
volumes:
|
|
- .:/app/posthog
|