DocsGPT/docker-compose.yaml

58 lines
1.4 KiB
YAML
Raw Normal View History

2023-02-24 17:04:37 +00:00
version: "3.9"
services:
backend:
build: ./application
2023-03-14 14:29:36 +00:00
environment:
- API_KEY=$OPENAI_API_KEY
- EMBEDDINGS_KEY=$OPENAI_API_KEY
2023-03-14 14:29:36 +00:00
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/1
- MONGO_URI=mongodb://mongo:27017/docsgpt
#- OPENAI_API_BASE=$OPENAI_API_BASE
#- OPENAI_API_VERSION=$OPENAI_API_VERSION
#- AZURE_DEPLOYMENT_NAME=$AZURE_DEPLOYMENT_NAME
2023-02-24 17:04:37 +00:00
ports:
- "5001:5001"
2023-03-14 11:34:55 +00:00
volumes:
2023-03-27 21:07:26 +00:00
- ./application/indexes:/app/indexes
- ./application/inputs:/app/inputs
- ./application/vectors:/app/vectors
2023-03-14 11:34:55 +00:00
depends_on:
- redis
- mongo
2023-03-14 14:29:36 +00:00
2023-03-14 11:34:55 +00:00
worker:
build: ./application
2023-03-14 14:29:36 +00:00
command: celery -A app.celery worker -l INFO
environment:
- API_KEY=$OPENAI_API_KEY
- EMBEDDINGS_KEY=$OPENAI_API_KEY
2023-03-14 14:29:36 +00:00
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/1
- MONGO_URI=mongodb://mongo:27017/docsgpt
- API_URL=http://backend:5001
#- OPENAI_API_BASE=$OPENAI_API_BASE
#- OPENAI_API_VERSION=$OPENAI_API_VERSION
#- AZURE_DEPLOYMENT_NAME=$AZURE_DEPLOYMENT_NAME
2023-03-13 14:20:03 +00:00
depends_on:
- redis
- mongo
2023-03-13 14:20:03 +00:00
redis:
image: redis:6-alpine
ports:
- 6379:6379
mongo:
image: mongo:6
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db
volumes:
2023-03-27 21:07:26 +00:00
mongodb_data_container: