fix(docker): docker base should use main db for plugin persons (#39294)

This commit is contained in:
Nick Best
2025-10-07 17:27:07 -07:00
committed by GitHub
parent c268e4a327
commit a69e276a58
2 changed files with 2 additions and 2 deletions

View File

@@ -289,7 +289,7 @@ services:
restart: on-failure
environment:
DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog'
PERSONS_DATABASE_URL: 'postgres://posthog:posthog@persons_db:5432/posthog_persons'
PERSONS_DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog'
KAFKA_HOSTS: 'kafka:9092'
REDIS_URL: 'redis://redis:6379/'
CLICKHOUSE_HOST: 'clickhouse'

View File

@@ -78,6 +78,6 @@ class PersonDBRouter:
return db != "persons_db_writer"
def is_persons_model(self, app_label, model_name):
# only route posthog app modlels, not auth.Group (there is a name clash between posthog_group
# only route posthog app models, not auth.Group (there is a name clash between posthog_group
# and Django's auth_group
return app_label == "posthog" and model_name in PERSONS_DB_MODELS