-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
32 lines (30 loc) · 981 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
version: "3.9"
# docker compose run --service-ports --name netspresso-dev netspresso bash
services:
netspresso:
build:
context: .
dockerfile: Dockerfile
image: netspresso:${TAG}
container_name: netspresso
ipc: host
ports:
# HOST_PORT for tensorboard
- 50001:50001 # tensorboard
- 50002:50002 # jupyter notebook
- 50003:50003 # (optional, gradio) configuration helper
- 50004:50004 # (optional, gradio) inference demo
volumes:
# from path: your working directory
# - /PATH/TO/netspresso:/home/appuser/netspresso
# from path: your dataset directory
- /PATH/TO/DATA:/DATA/PATH/IN/CONTAINER
# from path: your checkpoint directory
- /PATH/TO/CHECKPOINT:/CHECKPOINT/PATH/IN/CONTAINER
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ["0", "1", "2", "3"] # your GPU id(s)
capabilities: [gpu]