-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yaml
51 lines (46 loc) · 1.46 KB
/
docker-compose.yaml
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
49
---
services:
scriberr:
# image: ghcr.io/rishikanthc/scriberr:nightly
build:
context: .
dockerfile: Dockerfile
depends_on:
redis:
condition: service_started
pocketbase:
condition: service_started
ports:
- "3000:3000"
- "9243:9243" # Optionally expose JobQueue UI
environment:
- OPENAI_API_KEY=<reallylongsecretkey>
- OPENAI_ENDPOINT=http://ollama:11434/v1
- OPENAI_MODEL=llama3.2 # Ensure this model matches in `ollama-models` service
- OPENAI_ROLE=user
- POCKETBASE_ADMIN_EMAIL=admin@example.com
- POCKETBASE_ADMIN_PASSWORD=1234567890
- POCKETBASE_URL=http://pocketbase:8080
- REDIS_HOST=redis
- REDIS_PORT=6379
- SCRIBO_FILES=/scriberr
- DEV_MODE=false
- CONCURRENCY=1
volumes:
- ./scriberr/pb_data:/app/db
- ./scriberr:/scriberr
- ./scriberr/models:/models
redis:
image: redis:7-alpine
volumes:
- ./.dockerdata/redis:/data
pocketbase:
image: ghcr.io/rishikanthc/pocketbase:22.22
environment:
- POCKETBASE_ADMIN_EMAIL=admin@example.com # Replace with your admin email
- POCKETBASE_ADMIN_PASSWORD=1234567890 # Replace with your admin password
ports:
- "8080:8080" # Expose PocketBase on port 8080
volumes:
- ./pb_data:/pb/pb_data # Mount the PocketBase data directory for persistence
restart: unless-stopped # Always restart unless explicitly stopped