-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 862 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (39 loc) · 862 Bytes
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
services:
bookbytes:
build:
context: .
dockerfile: Dockerfile
container_name: bookbytes-app
ports:
- "5000:5000"
volumes:
- ./data:/data
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- FLASK_ENV=production
- FLASK_DEBUG=0
- DB_PATH=/data/bookbytes.db
- AUDIO_DIR=/data/audio
- PORT=5000
- HOST=0.0.0.0
- LOG_LEVEL=INFO
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
deploy:
resources:
limits:
cpus: "0.5"
memory: 1G
reservations:
cpus: "0.25"
memory: 512M
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"