Configure Docker for Linux host networking and add startup reindex

- Switch to host network mode for direct access to Ollama on host
- Update OLLAMA_URL to use localhost:11434
- Add startup.sh script to trigger reindex before app starts
- Update Dockerfile to execute startup script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-02 21:02:55 -04:00
parent c140758560
commit c5091dc07a
3 changed files with 14 additions and 14 deletions

View File

@@ -3,24 +3,15 @@ version: '3.8'
services:
raggr:
image: torrtle/simbarag:latest
ports:
- "8080:8080"
network_mode: host
environment:
- PAPERLESS_TOKEN=${PAPERLESS_TOKEN}
- BASE_URL=${BASE_URL}
- OLLAMA_URL=${OLLAMA_URL:-http://172.17.0.1:11434}
- OLLAMA_URL=${OLLAMA_URL:-http://localhost:11434}
- CHROMADB_PATH=/app/chromadb
- OPENAI_API_KEY=${OPENAI_API_KEY}
volumes:
- chromadb_data:/app/chromadb
networks:
- raggr-network
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
chromadb_data:
networks:
raggr-network:
driver: bridge
chromadb_data: