diff --git a/docker-compose.yaml b/docker-compose.yaml index 89befc5..ea42448 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,5 +4,51 @@ services: volumes: - ./searxng:/etc/searxng:rw ports: - - 3666:8080 - restart: unless-stopped \ No newline at end of file + - 4000:8080 + networks: + - perplexica-network + restart: unless-stopped + + perplexica-backend: + build: + context: . + dockerfile: backend.dockerfile + image: itzcrazykns1337/perplexica-backend:main + environment: + - SEARXNG_API_URL=http://searxng:8080 + depends_on: + - searxng + ports: + - 3001:3001 + volumes: + - backend-dbstore:/home/perplexica/data + - uploads:/home/perplexica/uploads + - ./config.toml:/home/perplexica/config.toml + extra_hosts: + - 'host.docker.internal:host-gateway' + networks: + - perplexica-network + restart: unless-stopped + + perplexica-frontend: + build: + context: . + dockerfile: app.dockerfile + args: + - NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api + - NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001 + image: itzcrazykns1337/perplexica-frontend:main + depends_on: + - perplexica-backend + ports: + - 3000:3000 + networks: + - perplexica-network + restart: unless-stopped + +networks: + perplexica-network: + +volumes: + backend-dbstore: + uploads: \ No newline at end of file diff --git a/sample.config.toml b/sample.config.toml new file mode 100644 index 0000000..24e3a64 --- /dev/null +++ b/sample.config.toml @@ -0,0 +1,30 @@ +[GENERAL] +PORT = 3001 # Port to run the server on +SIMILARITY_MEASURE = "cosine" # "cosine" or "dot" +KEEP_ALIVE = "5m" # How long to keep Ollama models loaded into memory. (Instead of using -1 use "-1m") + +[MODELS.OPENAI] +API_KEY = "" + +[MODELS.GROQ] +API_KEY = "" + +[MODELS.ANTHROPIC] +API_KEY = "" + +[MODELS.GEMINI] +API_KEY = "" + +[MODELS.CUSTOM_OPENAI] +API_KEY = "" +API_URL = "" +MODEL_NAME = "" + +[MODELS.OLLAMA] +API_URL = "" # Ollama API URL - http://host.docker.internal:11434 + +[API_ENDPOINTS] +SEARXNG = "http://localhost:32768" # SearxNG API URL + +[AUTH_PAGE] +AUTH_SECRET = "12345678" #Auth Secret for WebPage and APIs \ No newline at end of file