2022-05-26 11:36:44 +02:00
|
|
|
#
|
|
|
|
# `docker-compose` file used ONLY for hobby deployments.
|
|
|
|
#
|
|
|
|
# Please take a look at https://posthog.com/docs/self-host/deploy/hobby
|
|
|
|
# for more info.
|
|
|
|
#
|
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
|
|
|
|
#
|
2021-11-23 12:25:31 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: db
|
2023-09-13 16:11:07 +02:00
|
|
|
# Pin to postgres 12 until we have a process for pg_upgrade to postgres 15 for exsisting installations
|
|
|
|
image: ${DOCKER_REGISTRY_PREFIX:-}postgres:12-alpine
|
2022-08-12 16:31:24 +02:00
|
|
|
volumes:
|
|
|
|
- postgres-data:/var/lib/postgresql/data
|
2023-09-13 16:11:07 +02:00
|
|
|
|
2021-11-23 12:25:31 +01:00
|
|
|
redis:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: redis
|
2021-11-23 12:25:31 +01:00
|
|
|
clickhouse:
|
2022-03-15 12:19:21 +01:00
|
|
|
#
|
|
|
|
# Note: please keep the default version in sync across
|
|
|
|
# `posthog` and the `charts-clickhouse` repos
|
|
|
|
#
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: clickhouse
|
2021-11-23 12:25:31 +01:00
|
|
|
restart: on-failure
|
|
|
|
depends_on:
|
|
|
|
- kafka
|
|
|
|
- zookeeper
|
|
|
|
volumes:
|
2022-06-22 23:24:03 +02:00
|
|
|
- ./posthog/posthog/idl:/idl
|
2021-11-23 12:25:31 +01:00
|
|
|
- ./posthog/docker/clickhouse/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
|
|
|
- ./posthog/docker/clickhouse/config.xml:/etc/clickhouse-server/config.xml
|
|
|
|
- ./posthog/docker/clickhouse/users.xml:/etc/clickhouse-server/users.xml
|
2022-08-12 16:31:24 +02:00
|
|
|
- clickhouse-data:/var/lib/clickhouse
|
2021-11-23 12:25:31 +01:00
|
|
|
zookeeper:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: zookeeper
|
2022-05-16 19:10:36 +02:00
|
|
|
volumes:
|
|
|
|
- zookeeper-datalog:/datalog
|
|
|
|
- zookeeper-data:/data
|
|
|
|
- zookeeper-logs:/logs
|
2021-11-23 12:25:31 +01:00
|
|
|
kafka:
|
2022-11-29 21:50:42 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: kafka
|
2022-03-21 12:49:43 +01:00
|
|
|
|
2022-11-30 18:49:17 +01:00
|
|
|
worker:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: worker
|
2021-11-23 12:25:31 +01:00
|
|
|
environment:
|
2022-01-25 07:14:50 +01:00
|
|
|
SENTRY_DSN: $SENTRY_DSN
|
|
|
|
SITE_URL: https://$DOMAIN
|
2022-12-01 19:22:01 +01:00
|
|
|
SECRET_KEY: $POSTHOG_SECRET
|
2023-11-30 00:16:15 +01:00
|
|
|
image: $REGISTRY_URL:$POSTHOG_APP_TAG
|
2021-11-23 12:25:31 +01:00
|
|
|
web:
|
2022-11-30 18:49:17 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: web
|
2023-03-20 23:56:14 +01:00
|
|
|
command: /compose/start
|
2021-11-23 12:25:31 +01:00
|
|
|
volumes:
|
|
|
|
- ./compose:/compose
|
2023-11-30 00:16:15 +01:00
|
|
|
image: $REGISTRY_URL:$POSTHOG_APP_TAG
|
2022-11-30 18:49:17 +01:00
|
|
|
environment:
|
|
|
|
SENTRY_DSN: $SENTRY_DSN
|
|
|
|
SITE_URL: https://$DOMAIN
|
2022-12-01 19:22:01 +01:00
|
|
|
SECRET_KEY: $POSTHOG_SECRET
|
2022-11-30 18:49:17 +01:00
|
|
|
plugins:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: plugins
|
2023-11-30 00:16:15 +01:00
|
|
|
image: $REGISTRY_URL:$POSTHOG_APP_TAG
|
2022-11-30 18:49:17 +01:00
|
|
|
environment:
|
|
|
|
SENTRY_DSN: $SENTRY_DSN
|
|
|
|
SITE_URL: https://$DOMAIN
|
2022-12-01 19:22:01 +01:00
|
|
|
SECRET_KEY: $POSTHOG_SECRET
|
2022-11-30 18:49:17 +01:00
|
|
|
|
2021-11-23 12:25:31 +01:00
|
|
|
caddy:
|
2022-09-22 23:51:57 +02:00
|
|
|
image: caddy:2.6.1
|
2021-11-23 12:25:31 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
- '443:443'
|
|
|
|
volumes:
|
|
|
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
|
|
|
depends_on:
|
|
|
|
- web
|
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-05-26 11:36:44 +02:00
|
|
|
restart: on-failure
|
2022-05-20 10:56:50 +02:00
|
|
|
volumes:
|
|
|
|
- object_storage:/data
|
|
|
|
|
2022-03-09 14:42:15 +01:00
|
|
|
asyncmigrationscheck:
|
2022-11-30 18:49:17 +01:00
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: asyncmigrationscheck
|
2023-11-30 00:16:15 +01:00
|
|
|
image: $REGISTRY_URL:$POSTHOG_APP_TAG
|
2022-11-30 18:49:17 +01:00
|
|
|
environment:
|
|
|
|
SENTRY_DSN: $SENTRY_DSN
|
|
|
|
SITE_URL: https://$DOMAIN
|
2022-12-01 19:22:01 +01:00
|
|
|
SECRET_KEY: $POSTHOG_SECRET
|
2023-06-07 16:56:56 +02:00
|
|
|
SKIP_ASYNC_MIGRATIONS_SETUP: 0
|
2022-05-16 19:10:36 +02:00
|
|
|
|
2023-03-20 23:56:14 +01:00
|
|
|
# Temporal containers
|
|
|
|
temporal:
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: temporal
|
|
|
|
environment:
|
|
|
|
- ENABLE_ES=false
|
|
|
|
ports:
|
|
|
|
- 7233:7233
|
2023-05-09 15:24:13 +02:00
|
|
|
volumes:
|
|
|
|
- ./posthog/docker/temporal/dynamicconfig:/etc/temporal/config/dynamicconfig
|
2023-03-20 23:56:14 +01:00
|
|
|
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:
|
|
|
|
command: /compose/temporal-django-worker
|
|
|
|
extends:
|
|
|
|
file: docker-compose.base.yml
|
|
|
|
service: temporal-django-worker
|
|
|
|
volumes:
|
|
|
|
- ./compose:/compose
|
2023-11-30 00:16:15 +01:00
|
|
|
image: $REGISTRY_URL:$POSTHOG_APP_TAG
|
2023-03-20 23:56:14 +01:00
|
|
|
environment:
|
|
|
|
SENTRY_DSN: $SENTRY_DSN
|
|
|
|
SITE_URL: https://$DOMAIN
|
|
|
|
|
2022-05-16 19:10:36 +02:00
|
|
|
volumes:
|
|
|
|
zookeeper-data:
|
|
|
|
zookeeper-datalog:
|
|
|
|
zookeeper-logs:
|
2022-05-20 10:56:50 +02:00
|
|
|
object_storage:
|
2022-08-12 16:31:24 +02:00
|
|
|
postgres-data:
|
|
|
|
clickhouse-data:
|