mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
fix(docker): docker base should use main db for plugin persons (#39294)
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user