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: The following YAML file configures a multi-service application:
```yaml ```yaml
version: '3.8'
services: services:
searxng: searxng:
image: docker.io/searxng/searxng:latest image: searxng/searxng:latest
container_name: searxng
ports:
- "8080:8080"
volumes: volumes:
- ./searxng:/etc/searxng:rw - ./searxng:/etc/searxng:rw
ports: environment:
- 4000:8080 - 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: networks:
- perplexica-network - perplexica-network
restart: unless-stopped
ollama: ollama:
image: ollama/ollama:latest image: ollama/ollama:latest
container_name: ollama
ports: ports:
- "11434:11434" - "11434:11434"
volumes: volumes:
- ollama_data:/root/.ollama - ./ollama_data:/root/.ollama
deploy: deploy:
resources: resources:
reservations: reservations:
@ -64,29 +76,51 @@ services:
capabilities: [gpu] capabilities: [gpu]
environment: environment:
- OLLAMA_HOST=0.0.0.0:11434 - OLLAMA_HOST=0.0.0.0:11434
restart: unless-stopped
networks: networks:
- perplexica-network - 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 image: itzcrazykns1337/perplexica:main
container_name: perplexica
build: build:
context: . context: .
dockerfile: app.dockerfile dockerfile: app.dockerfile
environment: environment:
- SEARXNG_API_URL=http://searxng:8080 - SEARXNG_API_URL=http://searxng:8080
- OLLAMA_API_URL=http://ollama:11434 # Added Ollama API URL - OLLAMA_API_URL=http://ollama:11434 # Added Ollama API URL
ports: ports:
- 3000:3000 - "3001:3000"
networks: networks:
- perplexica-network - perplexica-network
volumes: volumes:
- backend-dbstore:/home/perplexica/data - backend-dbstore:/home/perplexica/data
- uploads:/home/perplexica/uploads - uploads:/home/perplexica/uploads
- ./config.toml:/home/perplexica/config.toml - ./config.toml:/home/perplexica/config.toml # Bind mount for config.toml
depends_on: depends_on:
- ollama #Ensure ollama is started first - ollama # Ensure ollama is started first
- searxng #Ensure searxng is started second - searxng # Ensure searxng is started first
restart: unless-stopped restart: unless-stopped
networks: networks:
@ -95,7 +129,6 @@ networks:
volumes: volumes:
backend-dbstore: backend-dbstore:
uploads: uploads:
ollama_data: # Add ollama volume so it does not get lost
``` ```
### Explanation of Each Service ### Explanation of Each Service