forked from smallnest/notex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (41 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
48 lines (41 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3.8'
services:
# Notex Application
app:
build:
context: .
dockerfile: Dockerfile
container_name: notex
environment:
# Server
- SERVER_HOST=0.0.0.0
- SERVER_PORT=8080
# LLM (choose one)
# Fill your OpenAI API key or use Ollama
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENAI_MODEL=${OPENAI_MODEL:-gpt-4o-mini}
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
# Vector Store (Default to SQLite for easy setup)
- VECTOR_STORE_TYPE=sqlite
- SQLITE_PATH=/data/vector.db
# Store (Metadata)
- STORE_TYPE=sqlite
- STORE_PATH=/data/checkpoints.db
ports:
- "8080:8080"
volumes:
- ./data:/data
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
# Ollama (Optional, if you want to run LLM locally in container)
# ollama:
# image: ollama/ollama:latest
# container_name: notex-ollama
# ports:
# - "11434:11434"
# volumes:
# - ollama-data:/root/.ollama
# restart: unless-stopped
volumes:
app-data: