🐳 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:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: base.Dockerfile
|
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:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/app
|
- ./:/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:
|
queue:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
|
|
@ -19,13 +27,16 @@ services:
|
||||||
celeryworker:
|
celeryworker:
|
||||||
depends_on:
|
depends_on:
|
||||||
- queue
|
- queue
|
||||||
env_file:
|
environment:
|
||||||
- .env
|
- LANGFLOW_CACHE_TYPE=redis
|
||||||
# environment:
|
- LANGFLOW_REDIS_HOST=queue
|
||||||
# - SERVER_NAME=${DOMAIN?Variable not set}
|
- LANGFLOW_REDIS_PORT=6379
|
||||||
# - SERVER_HOST=https://${DOMAIN?Variable not set}
|
- LANGFLOW_REDIS_DB=0
|
||||||
# # Allow explicit env var override for tests
|
- LANGFLOW_REDIS_EXPIRE=3600
|
||||||
# - SMTP_HOST=${SMTP_HOST?Variable not set}
|
- BROKER_URL=redis://queue:6379/0
|
||||||
|
- RESULT_BACKEND=redis://queue:6379/0
|
||||||
|
- C_FORCE_ROOT=true # ! Only for development
|
||||||
|
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: base.Dockerfile
|
dockerfile: base.Dockerfile
|
||||||
|
|
@ -34,12 +45,18 @@ services:
|
||||||
flower:
|
flower:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
|
depends_on:
|
||||||
|
- queue
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: base.Dockerfile
|
dockerfile: base.Dockerfile
|
||||||
env_file:
|
environment:
|
||||||
- .env
|
- LANGFLOW_CACHE_TYPE=redis
|
||||||
command: celery -A langflow.worker.celery_app flower --port=5555 --broker=redis://queue:6379/0
|
- 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:
|
ports:
|
||||||
- "5555:5555"
|
- "5555:5555"
|
||||||
|
|
||||||
|
|
@ -49,6 +66,9 @@ services:
|
||||||
dockerfile: ./dev.Dockerfile
|
dockerfile: ./dev.Dockerfile
|
||||||
args:
|
args:
|
||||||
- BACKEND_URL=http://backend:7860
|
- BACKEND_URL=http://backend:7860
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- backend
|
||||||
environment:
|
environment:
|
||||||
- VITE_PROXY_TARGET=http://backend:7860
|
- VITE_PROXY_TARGET=http://backend:7860
|
||||||
ports:
|
ports:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue