-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
41 lines (40 loc) · 1.05 KB
/
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
version: '3.8'
services:
rl-training:
image: torchdriveenv-first-release:latest
working_dir: /opt/torchdriveenv/examples
command: bash -c "python rl_training.py"
tty: true
volumes:
- type: bind
source: examples
target: /opt/torchdriveenv/examples
environment:
- IAI_API_KEY=${IAI_API_KEY}
- WANDB_API_KEY=${WANDB_API_KEY}
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
notebook:
image: torchdriveenv-first-release:latest
working_dir: /opt/torchdriveenv/examples
command: bash -c "jupyter notebook --ip=0.0.0.0 --port=8890 --allow-root --no-browser"
tty: true
ports:
- "8890:8890"
volumes:
- type: bind
source: examples
target: /opt/torchdriveenv/examples
environment:
- IAI_API_KEY=${IAI_API_KEY}
- WANDB_API_KEY=${WANDB_API_KEY}
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]