Skip to content

Commit

Permalink
add celery beat container
Browse files Browse the repository at this point in the history
  • Loading branch information
oleggator committed Oct 1, 2019
1 parent 7c4194b commit c5cd4a0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ services:
restart: "no"
volumes:
- .:/code

beat:
restart: "no"
volumes:
- .:/code
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c5cd4a0

Please sign in to comment.