-
Notifications
You must be signed in to change notification settings - Fork 30
/
docker-compose.yml
45 lines (44 loc) · 1018 Bytes
/
docker-compose.yml
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
version: "3"
services:
app:
image: oflow:latest
build:
context: .
dockerfile: Dockerfile
environment:
- DISPLAY=${DISPLAY}
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- .:/work:rw
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
user: 1000:1000
network_mode: host
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
cuda11app:
image: oflow:cuda11
build:
context: .
dockerfile: Dockerfile_cuda11
environment:
- DISPLAY=${DISPLAY}
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- .:/work:rw
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
user: 1000:1000
network_mode: host
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]