Skip to content

Commit 6db8ecb

Browse files
committed
add beat
1 parent 5783cd0 commit 6db8ecb

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

docker-compose.deploy.yml

+16
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,22 @@ services:
2424
depends_on:
2525
- db
2626
- queue
27+
beat:
28+
env_file: .env
29+
environment:
30+
- C_FORCE_ROOT=1
31+
build:
32+
context: .
33+
dockerfile: ./compose/django/Dockerfile
34+
args:
35+
DJANGO_REQUIREMENTS: production
36+
command: /venv/bin/celery -A eatsmart beat --loglevel=DEBUG
37+
links:
38+
- db
39+
- queue
40+
depends_on:
41+
- db
42+
- queue
2743
app:
2844
depends_on:
2945
- db

docs/docker.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Build the containers::
6969
Bring up the containers in this order::
7070

7171
docker-compose -f docker-compose.yml -f docker-compose.deploy.yml up -d db queue
72-
docker-compose -f docker-compose.yml -f docker-compose.deploy.yml up -d worker app
72+
docker-compose -f docker-compose.yml -f docker-compose.deploy.yml up -d worker beat app
7373

7474
Some useful commands::
7575

0 commit comments

Comments
 (0)