2023-06-17 11:35:05 +00:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
frontend:
|
|
|
|
build: ./frontend
|
|
|
|
environment:
|
2023-06-23 11:56:14 +00:00
|
|
|
- VITE_API_HOST=http://localhost:7091
|
2023-06-17 11:35:05 +00:00
|
|
|
- VITE_API_STREAMING=$VITE_API_STREAMING
|
|
|
|
ports:
|
|
|
|
- "5173:5173"
|
|
|
|
depends_on:
|
|
|
|
- backend
|
|
|
|
|
|
|
|
backend:
|
|
|
|
build: ./application
|
|
|
|
environment:
|
|
|
|
- API_KEY=$OPENAI_API_KEY
|
|
|
|
- EMBEDDINGS_KEY=$OPENAI_API_KEY
|
|
|
|
- CELERY_BROKER_URL=redis://redis:6379/0
|
|
|
|
- CELERY_RESULT_BACKEND=redis://redis:6379/1
|
|
|
|
- MONGO_URI=mongodb://mongo:27017/docsgpt
|
2023-06-17 14:09:22 +00:00
|
|
|
- OPENAI_API_KEY=$OPENAI_API_KEY
|
2023-08-05 12:08:51 +00:00
|
|
|
- OPENAI_API_BASE=$OPENAI_API_BASE
|
|
|
|
- OPENAI_API_VERSION=$OPENAI_API_VERSION
|
2023-06-17 11:35:05 +00:00
|
|
|
- AZURE_DEPLOYMENT_NAME=$AZURE_DEPLOYMENT_NAME
|
|
|
|
- AZURE_EMBEDDINGS_DEPLOYMENT_NAME=$AZURE_EMBEDDINGS_DEPLOYMENT_NAME
|
|
|
|
ports:
|
2023-06-23 11:56:14 +00:00
|
|
|
- "7091:7091"
|
2023-06-17 11:35:05 +00:00
|
|
|
volumes:
|
|
|
|
- ./application/indexes:/app/indexes
|
|
|
|
- ./application/inputs:/app/inputs
|
|
|
|
- ./application/vectors:/app/vectors
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mongo
|
|
|
|
|
|
|
|
worker:
|
|
|
|
build: ./application
|
|
|
|
command: celery -A app.celery worker -l INFO
|
|
|
|
environment:
|
|
|
|
- API_KEY=$OPENAI_API_KEY
|
|
|
|
- EMBEDDINGS_KEY=$OPENAI_API_KEY
|
|
|
|
- CELERY_BROKER_URL=redis://redis:6379/0
|
|
|
|
- CELERY_RESULT_BACKEND=redis://redis:6379/1
|
|
|
|
- MONGO_URI=mongodb://mongo:27017/docsgpt
|
2023-06-23 11:56:14 +00:00
|
|
|
- API_URL=http://backend:7091
|
2023-06-17 14:09:22 +00:00
|
|
|
- OPENAI_API_KEY=$OPENAI_API_KEY
|
2023-08-05 12:08:51 +00:00
|
|
|
- OPENAI_API_BASE=$OPENAI_API_BASE
|
|
|
|
- OPENAI_API_VERSION=$OPENAI_API_VERSION
|
2023-06-17 11:35:05 +00:00
|
|
|
- AZURE_DEPLOYMENT_NAME=$AZURE_DEPLOYMENT_NAME
|
|
|
|
- AZURE_EMBEDDINGS_DEPLOYMENT_NAME=$AZURE_EMBEDDINGS_DEPLOYMENT_NAME
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mongo
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:6-alpine
|
|
|
|
ports:
|
|
|
|
- 6379:6379
|
|
|
|
|
|
|
|
mongo:
|
|
|
|
image: mongo:6
|
|
|
|
ports:
|
|
|
|
- 27017:27017
|
|
|
|
volumes:
|
|
|
|
- mongodb_data_container:/data/db
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mongodb_data_container:
|