🐳 chore(docker-compose.celery.yml): add PostgreSQL and pgAdmin services to support database operations
✨ feat(docker-compose.celery.yml): add db service with PostgreSQL image and configure environment variables for database connection ✨ feat(docker-compose.celery.yml): add pgadmin service with pgAdmin4 image and configure environment variables for admin login 🔧 chore(docker-compose.celery.yml): add db service as a dependency for the queue service
This commit is contained in:
parent
e1872b8213
commit
c93390c0e9
1 changed files with 23 additions and 0 deletions
|
|
@ -7,18 +7,41 @@ services:
|
||||||
dockerfile: base.Dockerfile
|
dockerfile: base.Dockerfile
|
||||||
depends_on:
|
depends_on:
|
||||||
- queue
|
- queue
|
||||||
|
- db
|
||||||
environment:
|
environment:
|
||||||
- LANGFLOW_CACHE_TYPE=redis
|
- LANGFLOW_CACHE_TYPE=redis
|
||||||
- LANGFLOW_REDIS_HOST=queue
|
- LANGFLOW_REDIS_HOST=queue
|
||||||
- LANGFLOW_REDIS_PORT=6379
|
- LANGFLOW_REDIS_PORT=6379
|
||||||
- LANGFLOW_REDIS_DB=0
|
- LANGFLOW_REDIS_DB=0
|
||||||
- LANGFLOW_REDIS_EXPIRE=3600
|
- LANGFLOW_REDIS_EXPIRE=3600
|
||||||
|
- LANGFLOW_DATABASE_URL=postgresql://langflow:langflow@db:5432/langflow
|
||||||
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 --log-level debug"
|
command: bash -c "uvicorn --factory langflow.main:create_app --host 0.0.0.0 --port 7860 --reload --log-level debug"
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:15.4
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=langflow
|
||||||
|
- POSTGRES_PASSWORD=langflow
|
||||||
|
- POSTGRES_DB=langflow
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
|
||||||
|
pgadmin:
|
||||||
|
image: dpage/pgadmin4
|
||||||
|
environment:
|
||||||
|
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
||||||
|
PGADMIN_DEFAULT_PASSWORD: admin
|
||||||
|
ports:
|
||||||
|
- "5050:80"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
volumes:
|
||||||
|
- pgadmin:/var/lib/pgadmin
|
||||||
|
|
||||||
queue:
|
queue:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
ports:
|
ports:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue