Add conifg Sample
This commit is contained in:
parent
5e6d0e0ee6
commit
6480475d7c
2 changed files with 78 additions and 2 deletions
|
|
@ -4,5 +4,51 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./searxng:/etc/searxng:rw
|
- ./searxng:/etc/searxng:rw
|
||||||
ports:
|
ports:
|
||||||
- 3666:8080
|
- 4000:8080
|
||||||
restart: unless-stopped
|
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:
|
||||||
30
sample.config.toml
Normal file
30
sample.config.toml
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue