handson-ml/docker/docker-compose.yml

28 lines
667 B
YAML
Raw Normal View History

version: "3"
services:
handson-ml3:
build:
context: ../
2021-03-03 10:19:27 +01:00
dockerfile: ./docker/Dockerfile #Dockerfile.gpu
args:
- username=devel
- userid=1000
container_name: handson-ml3
image: ageron/handson-ml3:latest #latest-gpu
2019-06-04 10:43:14 +02:00
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 50m
ports:
- "8888:8888"
- "6006:6006"
volumes:
- ../:/home/devel/handson-ml3
command: /opt/conda/envs/homl3/bin/jupyter notebook --ip='0.0.0.0' --port=8888 --no-browser
2021-03-03 10:19:27 +01:00
#deploy:
# resources:
# reservations:
# devices:
# - capabilities: [gpu]