-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdocker-compose.yml
70 lines (65 loc) · 2.09 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
66
67
68
69
# Docker Compose file for deploying Scriberr with a PostgreSQL database
# Make sure a .env file is present in the same directory that this is being run from:
services:
app:
image: ghcr.io/rishikanthc/scriberr:${IMAGE_TAG:-main}
build:
context: .
platforms:
- linux/arm64
- linux/amd64
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
env_file:
# Specify your .env file here
- .env
ports:
- "${PORT:-3000}:3000"
volumes:
# Comment out the following line if you want to use a local directory for Scriberr data storage
- scriberr_data:/scriberr
# Uncomment the following line if you want to use a local directory for data storage
#- /path/to/scriberr_data:/scriberr
networks:
- app-network
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:15-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
# Comment out the following line if you want to use a local directory for PostgreSQL data storage
- postgres_data:/var/lib/postgresql/data
# Uncomment the following line if you want to use a local directory for data storage
#- /path/to/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
# Comment out the following lines if you want to use a local directory for data storage
volumes:
postgres_data:
scriberr_data: