-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 2.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (57 loc) · 2.04 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
54
55
56
57
58
59
60
61
# ─────────────────────────────────────────────────────────────
# GTO Exercise AI — full stack: web service + CV processing service
# Both services share a common video storage volume (single-node design).
# ─────────────────────────────────────────────────────────────
services:
# Computer-vision engine: pose estimation, rep counting, technique analysis
processing:
build: ./processing-service
container_name: gto-processing
ports:
- "8000:8000"
environment:
- MMPOSE_CONFIG=${MMPOSE_CONFIG}
- MMPOSE_WEIGHTS=${MMPOSE_WEIGHTS}
- HAND_WEIGHTS=${HAND_WEIGHTS}
- BAR_WEIGHTS=${BAR_WEIGHTS}
volumes:
- ./processing-service/models:/app/models # model weights (download separately)
- ./processing-service/logs:/app/logs
- storage:/app/storage # shared video storage
networks:
- gto
# For GPU inference, install the NVIDIA Container Toolkit and uncomment:
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
# Web platform: user/trainer accounts, video upload, results
web:
build:
context: ./web-service/app
container_name: gto-web
ports:
- "8080:80"
environment:
- SECRET_KEY=${SECRET_KEY}
- PROCESSING_URL=http://processing:8000
volumes:
- ./web-service/templates:/templates
- ./web-service/db:/db
- storage:/static/uploads # shared video storage
command: >
gunicorn --workers 4 --bind 0.0.0.0:80
--timeout 180 --graceful-timeout 180 --keep-alive 120
-k gevent --worker-connections 1000 app:app
depends_on:
- processing
networks:
- gto
volumes:
storage:
networks:
gto:
driver: bridge