-
Notifications
You must be signed in to change notification settings - Fork 0
/
nvidia-docker-compose.yml
41 lines (41 loc) · 1.05 KB
/
nvidia-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
networks:
default:
ipam:
config:
- gateway: 172.30.0.1
subnet: 172.30.0.0/16
driver: default
services:
db:
build: dockerfiles/postgres/
devices:
- /dev/nvidia0
- /dev/nvidia1
- /dev/nvidiactl
- /dev/nvidia-uvm
- /dev/nvidia-uvm-tools
volumes:
- nvidia_driver_384.111:/usr/local/nvidia:ro
web:
build: dockerfiles/django/
command: bash -c "cd agdss && cp -r /annotable/small-tomatoes/ webclient/static/
&& rm -rf static-root && python3 manage.py collectstatic --settings=agdss.settings.common
&& python3 manage.py runserver 0.0.0.0:8000 --settings=agdss.settings.common
&& cd /code/agdss-1/static-root/small-tomatoes/ && bash addImages.sh tomato"
depends_on:
- db
devices:
- /dev/nvidia0
- /dev/nvidia1
- /dev/nvidiactl
- /dev/nvidia-uvm
- /dev/nvidia-uvm-tools
expose:
- '8000'
volumes:
- ./annotable:/annotable
- nvidia_driver_384.111:/usr/local/nvidia:ro
version: '2'
volumes:
nvidia_driver_384.111:
external: true