yt_fastapi_celery_redis_flower_introduction's People
Forkers
fourmobro dod92 teetrejp1998 vltmedia chenying99 sam-37 botquinthomas estsantre mattssll kamoliddins kartikmulgund raishiketsu nicolaepostica mountain-chan uditduhan23 nuwancw larteyjoshua junwenyin dgarciacampelo soutrik71 barbietunnieyt_fastapi_celery_redis_flower_introduction's Issues
docker-compose up not reading .env parameters
Hi thanks for the great tutorial!
In my docker-compose.yml, this would not work (https://youtu.be/mcX_4EvYka4?t=1067):
celery_worker:
container_name: celery_worker
build: ./main
environment:
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
command: celery -A celery_worker.celery worker --loglevel=info
volumes:
- ./main/projects:/app
depends_on:
- redis
- [...]
resulting in
-------------- celery@ed960d6ff0fe v5.2.3 (dawn-chorus)
celery_worker | --- ***** -----
celery_worker | -- ******* ---- Linux-5.10.76-linuxkit-aarch64-with-glibc2.31 2022-02-13 13:36:02
celery_worker | - *** --- * ---
celery_worker | - ** ---------- [config]
celery_worker | - ** ---------- .> app: celery_worker:0xffffb6a28070
celery_worker | - ** ---------- .> transport: amqp://guest:**@localhost:5672//
celery_worker | - ** ---------- .> results: disabled://
celery_worker | - *** --- * --- .> concurrency: 5 (prefork)
celery_worker | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
celery_worker | --- ***** -----
celery_worker | -------------- [queues]
celery_worker | .> celery exchange=celery(direct) key=celery
However, removing the environment section will work:
celery_worker:
container_name: celery_worker
build: ./main
command: celery -A celery_worker.celery worker --loglevel=info
volumes:
- ./main/projects:/app
depends_on:
- redis
- [...]
resulting in:
celery_worker | -------------- celery@f6ab652b725c v5.2.3 (dawn-chorus)
celery_worker | --- ***** -----
celery_worker | -- ******* ---- Linux-5.10.76-linuxkit-aarch64-with-glibc2.31 2022-02-13 13:44:25
celery_worker | - *** --- * ---
celery_worker | - ** ---------- [config]
celery_worker | - ** ---------- .> app: celery_worker:0xffffa8d40070
celery_worker | - ** ---------- .> transport: redis://redis:6379/0
celery_worker | - ** ---------- .> results: redis://redis:6379/0
celery_worker | - *** --- * --- .> concurrency: 5 (prefork)
celery_worker | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
celery_worker | --- ***** -----
celery_worker | -------------- [queues]
celery_worker | .> celery exchange=celery(direct) key=celery
So it seems the values ${CELERY_BROKER_URL} and ${CELERY_RESULT_BACKEND} won't be populated. Any idea why?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.