Update README.md

This commit is contained in:
Ghassan Yusuf 2025-05-06 00:37:23 +03:00
parent 4c1c61bc68
commit 2c81f5307f

View File

@ -38,23 +38,35 @@ Replace `[your-repository-url]` with the actual GitHub repository URL of your Pe
The following YAML file configures a multi-service application:
```yaml
version: '3.8'
services:
searxng:
image: docker.io/searxng/searxng:latest
image: searxng/searxng:latest
container_name: searxng
ports:
- "8080:8080"
volumes:
- ./searxng:/etc/searxng:rw
ports:
- 4000:8080
environment:
- BASE_URL=http://localhost:8080/
- SEARXNG_ENABLE_METRICS=true
- SEARXNG_UI_DEFAULT_THEME=simple
- SEARXNG_AUTOCOMPLETE=google
- SEARXNG_ENABLE_HTTPS=false
- SEARXNG_DEFAULT_LANG=en
- SEARXNG_SEARCH_FORMAT=html,json
restart: unless-stopped
networks:
- perplexica-network
restart: unless-stopped
ollama:
image: ollama/ollama:latest
container_name: ollama
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
- ./ollama_data:/root/.ollama
deploy:
resources:
reservations:
@ -64,12 +76,34 @@ services:
capabilities: [gpu]
environment:
- OLLAMA_HOST=0.0.0.0:11434
restart: unless-stopped
networks:
- perplexica-network
restart: unless-stopped
app:
openweb-ui:
image: ghcr.io/open-webui/open-webui:main
container_name: openweb-ui
ports:
- "3000:8080"
environment:
- OLLAMA_API_BASE_URL=http://ollama:11434
- ENABLE_RAG_WEB_SEARCH=True
- RAG_WEB_SEARCH_ENGINE=searxng
- RAG_WEB_SEARCH_RESULT_COUNT=5 # Adjust the number of search results returned
- RAG_WEB_SEARCH_CONCURRENT_REQUESTS=10 # Adjust concurrent requests for performance tuning
- SEARXNG_QUERY_URL=http://searxng:8080/search?q=<query>
volumes:
- ./open-web-ui-data:/app/backend/data
depends_on:
- ollama
- searxng
restart: unless-stopped
networks:
- perplexica-network
perplexica:
image: itzcrazykns1337/perplexica:main
container_name: perplexica
build:
context: .
dockerfile: app.dockerfile
@ -77,16 +111,16 @@ services:
- SEARXNG_API_URL=http://searxng:8080
- OLLAMA_API_URL=http://ollama:11434 # Added Ollama API URL
ports:
- 3000:3000
- "3001:3000"
networks:
- perplexica-network
volumes:
- backend-dbstore:/home/perplexica/data
- uploads:/home/perplexica/uploads
- ./config.toml:/home/perplexica/config.toml
- ./config.toml:/home/perplexica/config.toml # Bind mount for config.toml
depends_on:
- ollama #Ensure ollama is started first
- searxng #Ensure searxng is started second
- ollama # Ensure ollama is started first
- searxng # Ensure searxng is started first
restart: unless-stopped
networks:
@ -95,7 +129,6 @@ networks:
volumes:
backend-dbstore:
uploads:
ollama_data: # Add ollama volume so it does not get lost
```
### Explanation of Each Service