-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-gpu.yml
47 lines (44 loc) · 1003 Bytes
/
docker-compose-gpu.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
46
47
version: '3.7'
services:
workflow:
image:
context: .
dockerfile: ./deploy/Dockerfile
command: ["jupyter", "lab", "--no-browser", "--allow-root", "--ip", "0.0.0.0", "--port", "8888"]
ports:
- 8888:8888
volumes:
- './data:/data/'
- './deploy:/workdir'
working_dir: /workdir
networks:
app_subnet:
ipv4_address: 172.20.0.10
depends_on:
- redisai
redisai:
image: 'redislabs/redisai:1.2.7-bionic-gpu'
ports:
- '6379:6379'
volumes:
- redisai_data:/var/lib/redis
- ./config/redis.conf:/usr/local/etc/redis/redis.conf
networks:
app_subnet:
ipv4_address: 172.20.0.20
deploy:
resources:
reservations:
devices:
- driver: "nvidia"
capabilities: ["gpu"]
count: 1
volumes:
workflow:
redisai_data:
networks:
app_subnet:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24