feat: switch to new task processor entrypoint

pull/14/head
Kim Gustyr 2 years ago
parent ef3ba12158
commit 09968036d8
No known key found for this signature in database
GPG Key ID: AC6CF99DF45E553E

@ -6,6 +6,7 @@ version: "3"
volumes: volumes:
pgdata: pgdata:
services: services:
postgres: postgres:
image: postgres:11.12-alpine image: postgres:11.12-alpine
@ -35,7 +36,6 @@ services:
# To use task processor service, uncomment line below and additional 'flagsmith_processor' # To use task processor service, uncomment line below and additional 'flagsmith_processor'
# container below # container below
TASK_RUN_METHOD: TASK_PROCESSOR # other options are: SYNCHRONOUSLY, SEPARATE_THREAD (default) TASK_RUN_METHOD: TASK_PROCESSOR # other options are: SYNCHRONOUSLY, SEPARATE_THREAD (default)
# For more info on configuring E-Mails - https://docs.flagsmith.com/deployment/locally-api#environment-variables # For more info on configuring E-Mails - https://docs.flagsmith.com/deployment/locally-api#environment-variables
# #
# Example SMTP: # Example SMTP:
@ -59,14 +59,9 @@ services:
environment: environment:
DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith DATABASE_URL: postgresql://postgres:password@postgres:5432/flagsmith
USE_POSTGRES_FOR_ANALYTICS: "True" USE_POSTGRES_FOR_ANALYTICS: "True"
entrypoint:
- "python"
- "manage.py"
- "runprocessor"
- "--sleepintervalms"
- "500"
depends_on: depends_on:
- flagsmith - flagsmith
- postgres - postgres
links: links:
- postgres - postgres
command: run-task-processor

Loading…
Cancel
Save