Created
May 8, 2024 15:41
-
-
Save pabik/cb8c6fd7b9b2d41a1706148c86a81085 to your computer and use it in GitHub Desktop.
docker-compose.yaml for DocsGPT Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
frontend: | |
build: ./frontend | |
environment: | |
- VITE_API_HOST=http://YOUR_IP_HERE:7091 | |
- VITE_API_STREAMING=$VITE_API_STREAMING | |
ports: | |
- "5173:5173" | |
depends_on: | |
- backend | |
backend: | |
build: ./application | |
environment: | |
- API_KEY=$API_KEY | |
- EMBEDDINGS_KEY=$API_KEY | |
- LLM_NAME=$LLM_NAME | |
- CELERY_BROKER_URL=redis://redis:6379/0 | |
- CELERY_RESULT_BACKEND=redis://redis:6379/1 | |
- MONGO_URI=mongodb://mongo:27017/docsgpt | |
ports: | |
- "7091:7091" | |
volumes: | |
- ./application/indexes:/app/application/indexes | |
- ./application/inputs:/app/application/inputs | |
- ./application/vectors:/app/application/vectors | |
depends_on: | |
- redis | |
- mongo | |
worker: | |
build: ./application | |
command: celery -A application.app.celery worker -l INFO | |
environment: | |
- API_KEY=$API_KEY | |
- EMBEDDINGS_KEY=$API_KEY | |
- LLM_NAME=$LLM_NAME | |
- CELERY_BROKER_URL=redis://redis:6379/0 | |
- CELERY_RESULT_BACKEND=redis://redis:6379/1 | |
- MONGO_URI=mongodb://mongo:27017/docsgpt | |
- API_URL=http://backend:7091 | |
depends_on: | |
- redis | |
- mongo | |
redis: | |
image: redis:6-alpine | |
ports: | |
- 6379:6379 | |
mongo: | |
image: mongo:4.4.8 | |
ports: | |
- 27017:27017 | |
volumes: | |
- mongodb_data_container:/data/db | |
volumes: | |
mongodb_data_container: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment