From c5cd4a0ef6bf854970c2f46250d22ef655e01039 Mon Sep 17 00:00:00 2001 From: Oleg Utkin Date: Wed, 2 Oct 2019 00:13:09 +0300 Subject: [PATCH] add celery beat container --- docker-compose.override.yml | 5 +++++ docker-compose.yml | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 2ebcba1f6..9d0457c6b 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -37,3 +37,8 @@ services: restart: "no" volumes: - .:/code + + beat: + restart: "no" + volumes: + - .:/code diff --git a/docker-compose.yml b/docker-compose.yml index 37973c268..44fb0cedd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -43,3 +43,15 @@ services: hostname: tasks image: serenata/django restart: always + + beat: + command: ["newrelic-admin", "run-program", "celery", "beat", "--app", "jarbas"] + depends_on: + - queue + env_file: + - .env + environment: + - NEW_RELIC_APP_NAME=Jarbas (Beat); Jarbas (Combined) + hostname: beat + image: serenata/django + restart: always