cors + dependencies

This commit is contained in:
Alex
2023-03-14 14:29:36 +00:00
parent bfb47da398
commit c4464455a1
5 changed files with 65 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ services:
frontend:
build: ./frontend
environment:
- API_HOST=http://backend:5001
- VITE_API_HOST=http://localhost:5001
ports:
- "5173:5173"
depends_on:
@@ -12,6 +12,12 @@ services:
backend:
build: ./application
environment:
- API_KEY=<your_api_key>
- EMBEDDINGS_KEY=<your_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:
@@ -19,9 +25,17 @@ services:
depends_on:
- redis
- mongo
worker:
build: ./application
command: celery -A app.celery worker -l info
command: celery -A app.celery worker -l INFO
environment:
- API_KEY=<your_api_key>
- EMBEDDINGS_KEY=<your_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