Improve docker setup
- add .dockerignore to reduce build context - add entrypoint.sh to initialize environment before user switch - fix Celery setting deprecation warnings - downgrade importlib-metadata for Celery compatibility - set TZ environment variable for consistent Celery timestamps
This commit is contained in:
parent
2575afb9f9
commit
88253ee37d
7 changed files with 43 additions and 21 deletions
|
|
@ -5,7 +5,8 @@ set -e
|
|||
QUEUE=mysql
|
||||
TASKS=${QUEUE}tasks
|
||||
APP=gvamysql
|
||||
export TZ="Europe/Berlin"
|
||||
|
||||
. "/srv/${APP}/.venv/bin/activate"
|
||||
cd /srv/${APP}/${APP}
|
||||
celery -A "${TASKS}" worker -Q "${QUEUE}" -l info
|
||||
celery -A "${TASKS}" worker -Q "${QUEUE}" -E -l info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue