-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.gpu.yaml
More file actions
43 lines (36 loc) · 1.03 KB
/
docker-compose.gpu.yaml
File metadata and controls
43 lines (36 loc) · 1.03 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
services:
football-ai:
build:
context: .
dockerfile: Dockerfile
container_name: football-ai-app
# GPU support with nvidia runtime
runtime: nvidia
# Interactive mode with tty
stdin_open: true
tty: true
# Mount volumes
volumes:
# Mount current directory for code (maintains version control)
- .:/app
# Mount videos folder for input/output
- ./videos:/app/videos
# Mount output folder
- ./output:/app/output
# Mount cache folder for model caching
- ./.cache:/app/.cache
# X11 socket for GUI
- /tmp/.X11-unix:/tmp/.X11-unix:rw
# Environment variables
environment:
- PYTHONUNBUFFERED=1
- DISPLAY=${DISPLAY}
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility,video
- CUDA_VISIBLE_DEVICES=0
# Network mode for GUI support
network_mode: host
# Working directory
working_dir: /app
# Command to start with bash
command: /bin/bash