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.
|
|
|
|
#
|
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
|
2022-08-12 16:31:24 +02:00
|
|
|
volumes:
|
|
|
|
- postgres-data:/var/lib/postgresql/data
|
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
|
2022-11-30 18:49:17 +01:00
|
|
|
image: posthog/posthog:$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
|
2021-11-23 12:25:31 +01:00
|
|
|
volumes:
|
|
|
|
- ./compose:/compose
|
2022-11-30 18:49:17 +01:00
|
|
|
image: posthog/posthog:$POSTHOG_APP_TAG
|
|
|
|
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
|
|
|
|
image: posthog/posthog:$POSTHOG_APP_TAG
|
|
|
|
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
|
|
|
|
image: posthog/posthog:$POSTHOG_APP_TAG
|
|
|
|
environment:
|
|
|
|
SENTRY_DSN: $SENTRY_DSN
|
|
|
|
SITE_URL: https://$DOMAIN
|
2022-12-01 19:22:01 +01:00
|
|
|
SECRET_KEY: $POSTHOG_SECRET
|
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:
|