File tree Expand file tree Collapse file tree 3 files changed +19
-17
lines changed
Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ services:
44 - docker
55
66script :
7- - docker-compose up -d
7+ - docker-compose up -d --build
8+ - docker-compose stop
9+ - docker-compose -f docker-compose.yml -f docker-compose.development.yml up --build
810 - docker-compose stop
911
Original file line number Diff line number Diff line change 1- FROM python:3.6-alpine
2-
3- ENV CELERY_BROKER_URL redis://redis:6379/0
4- ENV CELERY_RESULT_BACKEND redis://redis:6379/0
5- ENV C_FORCE_ROOT true
6-
7- COPY . /queue
8- WORKDIR /queue
9-
10- RUN pip install -r requirements.txt
11-
12- # production
13- # ENTRYPOINT celery -A tasks worker --loglevel=info
14-
15- # hot code reloading
16- ENTRYPOINT watchmedo auto-restart --directory=./ --pattern=*.py --recursive -- celery -A tasks worker --concurrency=1 --loglevel=INFO
Original file line number Diff line number Diff line change 1+ FROM python:3.6-alpine
2+
3+ ENV CELERY_BROKER_URL redis://redis:6379/0
4+ ENV CELERY_RESULT_BACKEND redis://redis:6379/0
5+ ENV C_FORCE_ROOT true
6+
7+ COPY . /queue
8+ WORKDIR /queue
9+
10+ RUN pip install -r requirements.txt
11+
12+ # production
13+ #ENTRYPOINT celery -A tasks worker --loglevel=info
14+
15+ # hot code reloading
16+ ENTRYPOINT watchmedo auto-restart --directory=./ --pattern=*.py --recursive -- celery -A tasks worker --concurrency=1 --loglevel=INFO
You can’t perform that action at this time.
0 commit comments