From 2b7f7ec4d704d72c18e8af14161db33f2be9b6da Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Tue, 28 Jan 2020 19:16:37 -0600 Subject: [PATCH] Add django and postgres envs to celeryworker and celerybeat --- {{cookiecutter.project_slug}}/production.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/{{cookiecutter.project_slug}}/production.yml b/{{cookiecutter.project_slug}}/production.yml index 62ec9d829..1724f43ca 100644 --- a/{{cookiecutter.project_slug}}/production.yml +++ b/{{cookiecutter.project_slug}}/production.yml @@ -51,11 +51,16 @@ services: <<: *django image: {{ cookiecutter.project_slug }}_production_celeryworker command: /start-celeryworker + env_file: + - ./.envs/.production/.django + - ./.envs/.production/.postgres celerybeat: <<: *django image: {{ cookiecutter.project_slug }}_production_celerybeat command: /start-celerybeat + env_file: + - ./.envs/.production/.postgres flower: <<: *django