mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
compatibility with docker compose
This commit is contained in:
parent
6413f6211e
commit
f6cd3c0e38
2 changed files with 10 additions and 4 deletions
|
|
@ -29,10 +29,10 @@ services:
|
|||
- COPILOT_API_URL=http://copilot:3002
|
||||
- COPILOT_API_KEY=${COPILOT_API_KEY}
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- USE_RAG=true
|
||||
- USE_RAG=${USE_RAG}
|
||||
- QDRANT_URL=http://qdrant:6333
|
||||
- QDRANT_API_KEY=${QDRANT_API_KEY}
|
||||
- USE_RAG_UPLOADS=true
|
||||
- USE_RAG_UPLOADS=${USE_RAG_UPLOADS}
|
||||
- USE_RAG_S3_UPLOADS=${USE_RAG_S3_UPLOADS}
|
||||
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
|
||||
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
|
||||
|
|
@ -112,6 +112,7 @@ services:
|
|||
context: ./apps/rowboat
|
||||
dockerfile: scripts.Dockerfile
|
||||
command: ["sh", "-c", "npm run setupQdrant"]
|
||||
profiles: [ "setup_qdrant" ]
|
||||
environment:
|
||||
- QDRANT_URL=http://qdrant:6333
|
||||
- QDRANT_API_KEY=${QDRANT_API_KEY}
|
||||
|
|
@ -245,5 +246,6 @@ services:
|
|||
environment:
|
||||
- QDRANT__STORAGE__STORAGE_PATH=/data/qdrant
|
||||
restart: unless-stopped
|
||||
profiles: [ "qdrant" ]
|
||||
volumes:
|
||||
- ./data/qdrant:/data/qdrant
|
||||
|
|
|
|||
8
start.sh
8
start.sh
|
|
@ -5,10 +5,14 @@ mkdir -p data/uploads
|
|||
mkdir -p data/qdrant
|
||||
mkdir -p data/mongo
|
||||
|
||||
# set the following environment variables
|
||||
export USE_RAG=true
|
||||
export USE_RAG_UPLOADS=true
|
||||
|
||||
# Start with the base command and profile flags
|
||||
CMD="docker-compose"
|
||||
|
||||
# enable rag text and files workers
|
||||
CMD="$CMD --profile setup_qdrant"
|
||||
CMD="$CMD --profile qdrant"
|
||||
CMD="$CMD --profile rag_text_worker"
|
||||
CMD="$CMD --profile rag_files_worker"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue