-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.performance.yml
More file actions
48 lines (46 loc) · 1.17 KB
/
docker-compose.performance.yml
File metadata and controls
48 lines (46 loc) · 1.17 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
39
40
41
42
43
44
45
46
47
48
version: '3.8'
services:
video-editor-api-performance:
build:
context: .
dockerfile: Dockerfile.performance
ports:
- "8080:8080"
environment:
- FLASK_ENV=production
- PYTHONPATH=/app
- PORT=8080
- PERFORMANCE_MODE=HIGH
- MAX_MEMORY_USAGE=90
- USE_ALL_CORES=true
# Performance optimizations - use actual CPU count
- OMP_NUM_THREADS=4
- MKL_NUM_THREADS=4
- VECLIB_MAXIMUM_THREADS=4
- NUMEXPR_NUM_THREADS=4
- PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:1024
volumes:
- ./temp:/app/temp
- ./uploads:/app/uploads
- ./jobs:/app/jobs
- ./static:/app/static
restart: unless-stopped
deploy:
resources:
limits:
# Use maximum available resources
cpus: '0' # No CPU limit
memory: '0' # No memory limit
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 20s
retries: 3
start_period: 60s
# Enable host networking for maximum performance (optional)
# network_mode: host
volumes:
temp_data:
uploads_data:
jobs_data:
static_data: