-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.cpu.yml
More file actions
47 lines (39 loc) · 1.08 KB
/
Copy pathdocker-compose.cpu.yml
File metadata and controls
47 lines (39 loc) · 1.08 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
# ============================================================
# Docker Compose - CPU Only (for machines without GPUs)
# ============================================================
# Usage:
# docker compose -f docker-compose.cpu.yml up -d --build
#
# Requirements:
# - Docker Engine 24+
# - NVIDIA GPU is not required, Whisper runs in CPU mode
#
# NOTE: Whisper runs ~3-5x slower in CPU mode but
# all functions continue to work flawlessly.
# ============================================================
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: google-images-to-video
restart: unless-stopped
ports:
- "80:80"
# NO GPU - runs without deploy block
# Force Whisper to CPU mode
environment:
- CUDA_VISIBLE_DEVICES=""
env_file:
- backend/.env
volumes:
- whisper-cache:/app/.cache
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/"]
interval: 30s
timeout: 5s
start_period: 60s
retries: 3
volumes:
whisper-cache:
driver: local