30 lines
805 B
YAML
30 lines
805 B
YAML
services:
|
|
dl:
|
|
container_name: dl
|
|
build:
|
|
dockerfile: dockerfile
|
|
context: .
|
|
volumes:
|
|
- /home/kejingfan/Data/deep_learning:/root/workspace:rw
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /home/kejingfan/.claude/settings.json:/root/.claude/settings.json:ro
|
|
ports:
|
|
- 8888:8888
|
|
environment:
|
|
http_proxy: 'http://172.17.0.1:7890'
|
|
https_proxy: 'http://172.17.0.1:7890'
|
|
no_proxy: 'localhost,127.0.0.1'
|
|
tty: true
|
|
stdin_open: true
|
|
shm_size: 16g
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
device_ids: [ '0' ]
|
|
capabilities: [ gpu ]
|
|
command: >
|
|
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root
|