-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 1.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (37 loc) · 1.15 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
services:
searchbox:
build: .
image: sourcebox/searchbox:latest
container_name: searchbox
ports:
- "8080:8080"
- "7700:7700"
environment:
- SEARCHBOX_SECRET_KEY=${SEARCHBOX_SECRET_KEY:-change-me-in-production}
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-aSampleMasterKey}
# Ollama on the host; drop or override if you run it elsewhere.
- OLLAMA_URL=${OLLAMA_URL:-http://host.docker.internal:11434}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- searchbox-data:/app/instance
- searchbox-vault:/app/vault
- searchbox-thumbnails:/app/static/thumbnails
- meili-data:/app/meili_data
# Mount the user's filesystems read-only so the indexer can see them.
# Override this on Windows with docker-compose.windows.yml.
- /home:/home:ro
- /mnt:/mnt:ro
- /media:/media:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-fs", "http://localhost:8080/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
searchbox-data:
searchbox-vault:
searchbox-thumbnails:
meili-data: