-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose.yml
66 lines (62 loc) · 1.58 KB
/
docker-compose.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
app:
build:
context: .
platforms:
- linux/arm64
args: # Build-time variables
- DATABASE_URL=postgres://root:mysecretpassword@db:5432/local
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=password
- AI_MODEL="gpt-4o-mini"
- OLLAMA_BASE_URL=""
- MODELS_DIR="/scriberr/models"
- WORK_DIR="/scriberr/temp"
- AUDIO_DIR="/scriberr/uploads"
- OPENAI_API_KEY=""
- BODY_SIZE_LIMIT=100M
environment: # Runtime variables (these override build args)
DATABASE_URL: postgres://root:mysecretpassword@db:5432/local
ADMIN_USERNAME: admin
ADMIN_PASSWORD: password
OLLAMA_BASE_URL: ""
AI_MODEL: "gpt-4o-mini"
MODELS_DIR: "/scriberr/models"
WORK_DIR: "/scriberr/temp"
AUDIO_DIR: "/scriberr/uploads"
OPENAI_API_KEY: ""
BODY_SIZE_LIMIT: 1G
ports:
- "3000:3000"
volumes:
- scriberr_data:/scriberr
networks:
- app-network
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:15-alpine
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: local
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U root -d local"]
interval: 5s
timeout: 5s
retries: 5
networks:
- app-network
restart: unless-stopped
networks:
app-network:
driver: bridge
volumes:
postgres_data:
scriberr_data: