diff --git a/README.md b/README.md index 24ecf18..492bd8e 100644 --- a/README.md +++ b/README.md @@ -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,29 +76,51 @@ 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= + 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 environment: - 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: - - 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