File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,25 @@ services:
110
110
readthedocs :
111
111
command : ["../../docker/celery.sh"]
112
112
113
+ celery-beat :
114
+ volumes :
115
+ - ${PWD}/common/dockerfiles/entrypoints/common.sh:/usr/src/app/docker/common.sh
116
+ - ${PWD}/common/dockerfiles/entrypoints/celery-beat.sh:/usr/src/app/docker/celery-beat.sh
117
+ - ${PWD}/common/dockerfiles/nodemon.json:/usr/src/app/checkouts/nodemon.json
118
+ - ${PWD}/${RTDDEV_PATH_EXT:-../readthedocs-ext}:/usr/src/app/checkouts/readthedocs-ext
119
+ - ${PWD}/${RTDDEV_PATH_EXT_THEME:-../ext-theme}:/usr/src/app/checkouts/ext-theme
120
+ links :
121
+ - cache
122
+ environment :
123
+ - DOCKER_NO_RELOAD
124
+ - CELERY_LOG_LEVEL=${CELERY_LOG_LEVEL:-INFO}
125
+ - RTD_PRODUCTION_DOMAIN
126
+ stdin_open : true
127
+ tty : true
128
+ networks :
129
+ readthedocs :
130
+ command : ["../../docker/celery-beat.sh"]
131
+
113
132
build :
114
133
volumes :
115
134
- ${PWD}/common/dockerfiles/entrypoints/common.sh:/usr/src/app/docker/common.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ ../../docker/common.sh
4
+
5
+ CMD=" python3 -m celery -A ${CELERY_APP_NAME} .worker beat -l ${CELERY_LOG_LEVEL} "
6
+
7
+ if [ -n " ${DOCKER_NO_RELOAD} " ]; then
8
+ echo " Running process with no reload"
9
+ $CMD
10
+ else
11
+ echo " Running process with reload"
12
+ nodemon --config ../nodemon.json --exec $CMD
13
+ fi
You can’t perform that action at this time.
0 commit comments