-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
53 lines (49 loc) · 1.2 KB
/
docker-compose.prod.yml
File metadata and controls
53 lines (49 loc) · 1.2 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
49
50
51
52
53
# Production configuration with AWS RDS
# Usage: docker compose -f docker-compose.prod.yml up -d
services:
# Backend - Production Configuration
backend:
build:
context: ./zaban_backend
dockerfile: Dockerfile.prod
args:
HUGGING_FACE_TOKEN: ${HUGGING_FACE_TOKEN}
env_file:
- ./zaban_backend/.env
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8000:8000"
restart: always
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
# Production model caches (host paths for persistence)
- /data/ml_models/huggingface:/app/.cache/huggingface
- /data/ml_models/whisper:/root/.cache/whisper
- /data/ml_models/fasttext:/root/.cache/zaban/models
networks:
- zaban-network
# Frontend - Production Configuration
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
env_file:
- ./frontend/.env
ports:
- "3000:3000"
restart: always
deploy: {}
networks:
- zaban-network
volumes:
ml_models_cache:
networks:
zaban-network:
driver: bridge