🐳 chore(docker-compose.celery.yml): add dependencies and environment variables for redis cache and queue
🔧 fix(docker-compose.celery.yml): update uvicorn command to include debug log level 🔧 fix(docker-compose.celery.yml): update flower command to include redis broker URL 🔧 fix(docker-compose.celery.yml): add dependencies and environment variables for redis cache and queue in frontend service
This commit is contained in:
parent
561e048278
commit
0ed1165e53
1 changed files with 31 additions and 11 deletions
|
|
@ -5,11 +5,19 @@ services:
|
|||
build:
|
||||
context: ./
|
||||
dockerfile: base.Dockerfile
|
||||
depends_on:
|
||||
- queue
|
||||
environment:
|
||||
- LANGFLOW_CACHE_TYPE=redis
|
||||
- LANGFLOW_REDIS_HOST=queue
|
||||
- LANGFLOW_REDIS_PORT=6379
|
||||
- LANGFLOW_REDIS_DB=0
|
||||
- LANGFLOW_REDIS_EXPIRE=3600
|
||||
ports:
|
||||
- "7860:7860"
|
||||
volumes:
|
||||
- ./:/app
|
||||
command: bash -c "uvicorn --factory langflow.main:create_app --host 0.0.0.0 --port 7860 --reload"
|
||||
command: bash -c "uvicorn --factory langflow.main:create_app --host 0.0.0.0 --port 7860 --reload --log-level debug"
|
||||
|
||||
queue:
|
||||
image: redis:latest
|
||||
|
|
@ -19,13 +27,16 @@ services:
|
|||
celeryworker:
|
||||
depends_on:
|
||||
- queue
|
||||
env_file:
|
||||
- .env
|
||||
# environment:
|
||||
# - SERVER_NAME=${DOMAIN?Variable not set}
|
||||
# - SERVER_HOST=https://${DOMAIN?Variable not set}
|
||||
# # Allow explicit env var override for tests
|
||||
# - SMTP_HOST=${SMTP_HOST?Variable not set}
|
||||
environment:
|
||||
- LANGFLOW_CACHE_TYPE=redis
|
||||
- LANGFLOW_REDIS_HOST=queue
|
||||
- LANGFLOW_REDIS_PORT=6379
|
||||
- LANGFLOW_REDIS_DB=0
|
||||
- LANGFLOW_REDIS_EXPIRE=3600
|
||||
- BROKER_URL=redis://queue:6379/0
|
||||
- RESULT_BACKEND=redis://queue:6379/0
|
||||
- C_FORCE_ROOT=true # ! Only for development
|
||||
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: base.Dockerfile
|
||||
|
|
@ -34,12 +45,18 @@ services:
|
|||
flower:
|
||||
networks:
|
||||
- default
|
||||
depends_on:
|
||||
- queue
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: base.Dockerfile
|
||||
env_file:
|
||||
- .env
|
||||
command: celery -A langflow.worker.celery_app flower --port=5555 --broker=redis://queue:6379/0
|
||||
environment:
|
||||
- LANGFLOW_CACHE_TYPE=redis
|
||||
- LANGFLOW_REDIS_HOST=queue
|
||||
- LANGFLOW_REDIS_PORT=6379
|
||||
- LANGFLOW_REDIS_DB=0
|
||||
- LANGFLOW_REDIS_EXPIRE=3600
|
||||
command: celery -A langflow.worker.celery_app --broker=redis://queue:6379/0 flower --port=5555
|
||||
ports:
|
||||
- "5555:5555"
|
||||
|
||||
|
|
@ -49,6 +66,9 @@ services:
|
|||
dockerfile: ./dev.Dockerfile
|
||||
args:
|
||||
- BACKEND_URL=http://backend:7860
|
||||
|
||||
depends_on:
|
||||
- backend
|
||||
environment:
|
||||
- VITE_PROXY_TARGET=http://backend:7860
|
||||
ports:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue