2023-02-24 17:04:37 +00:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
2023-06-15 16:40:58 +00:00
|
|
|
frontend:
|
|
|
|
build: ./frontend
|
|
|
|
environment:
|
2023-06-23 11:56:14 +00:00
|
|
|
- VITE_API_HOST=http://localhost:7091
|
2023-06-15 16:40:58 +00:00
|
|
|
- VITE_API_STREAMING=$VITE_API_STREAMING
|
|
|
|
ports:
|
|
|
|
- "5173:5173"
|
|
|
|
depends_on:
|
|
|
|
- backend
|
2023-02-24 17:04:37 +00:00
|
|
|
|
|
|
|
backend:
|
|
|
|
build: ./application
|
2023-03-14 14:29:36 +00:00
|
|
|
environment:
|
2023-04-11 21:49:47 +00:00
|
|
|
- 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
|
2023-08-15 13:14:49 +00:00
|
|
|
- SELF_HOSTED_MODEL=$SELF_HOSTED_MODEL
|
2023-02-24 17:04:37 +00:00
|
|
|
ports:
|
2023-06-23 11:56:14 +00:00
|
|
|
- "7091:7091"
|
2023-03-14 11:34:55 +00:00
|
|
|
volumes:
|
2023-08-13 19:00:52 +00:00
|
|
|
- ./application/indexes:/app/application/indexes
|
|
|
|
- ./application/inputs:/app/application/inputs
|
|
|
|
- ./application/vectors:/app/application/vectors
|
2023-03-14 11:34:55 +00:00
|
|
|
depends_on:
|
2023-06-23 11:56:14 +00:00
|
|
|
- redis
|
|
|
|
- mongo
|
2023-03-14 14:29:36 +00:00
|
|
|
|
2023-03-14 11:34:55 +00:00
|
|
|
worker:
|
|
|
|
build: ./application
|
2023-08-13 17:25:55 +00:00
|
|
|
command: celery -A application.app.celery worker -l INFO
|
2023-03-14 14:29:36 +00:00
|
|
|
environment:
|
2023-04-11 21:49:47 +00:00
|
|
|
- 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
|
2023-06-23 11:56:14 +00:00
|
|
|
- API_URL=http://backend:7091
|
2023-03-13 14:20:03 +00:00
|
|
|
depends_on:
|
2023-06-23 11:56:14 +00:00
|
|
|
- redis
|
|
|
|
- mongo
|
2023-02-28 11:59:37 +00:00
|
|
|
|
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-06-23 11:56:14 +00:00
|
|
|
mongodb_data_container:
|