πŸ”§ chore(docker-compose.yml): update volume path to correctly mount parent directory for the app

πŸ”§ chore(docker-compose.yml): update Redis image version to 7.2.0 for the queue service
πŸ”§ chore(docker-compose.yml): update command for the flower service to use environment variables for Redis connection details
πŸ”§ chore(flower.env): add LANGFLOW_REDIS_PASSWORD environment variable
This commit is contained in:
Gabriel Luiz Freitas Almeida
2023-08-17 18:09:33 -03:00
parent 607c27a329
commit af8a4428f9
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ services:
ports:
- "7860:7860"
volumes:
- ./:/app
- ../:/app
- ./startup-backend.sh:/startup-backend.sh # Ensure the paths match
command: /startup-backend.sh # Fixed the path
@@ -37,7 +37,7 @@ services:
- ./pgadmin:/var/lib/pgadmin
queue:
image: redis:6.2.5 # Use a specific version
image: redis:7.2.0
ports:
- "6379:6379"
@@ -63,7 +63,7 @@ services:
dockerfile: base.Dockerfile
env_file:
- ./flower.env
command: celery -A langflow.worker.celery_app --broker=redis://queue:6379/0 flower --port=5555
command: /bin/sh -c "celery -A langflow.worker.celery_app --broker=redis://$${LANGFLOW_REDIS_PASSWORD:+default:$${LANGFLOW_REDIS_PASSWORD}@}$${LANGFLOW_REDIS_HOST}:$${LANGFLOW_REDIS_PORT}/$${LANGFLOW_REDIS_DB} flower --port=5555"
ports:
- "5555:5555"
+1
View File
@@ -3,3 +3,4 @@ LANGFLOW_REDIS_HOST=queue
LANGFLOW_REDIS_PORT=6379
LANGFLOW_REDIS_DB=0
LANGFLOW_REDIS_EXPIRE=3600
LANGFLOW_REDIS_PASSWORD=