mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-02 03:40:17 +00:00
bc9f1c17ed
Co-Authored-By: riccardofresi <89981746+riccardofresi@users.noreply.github.com>
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
version: "3.9"
|
|
|
|
services:
|
|
|
|
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
|
|
ports:
|
|
- "5001:5001"
|
|
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
|
|
- API_URL=http://backend:5001
|
|
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: |