handson-ml/docker/docker-compose.yml

27 lines
638 B
YAML
Raw Normal View History

version: "3"
services:
2019-06-04 10:43:14 +02:00
handson-ml2:
build:
context: ../
2021-03-03 10:19:27 +01:00
dockerfile: ./docker/Dockerfile #Dockerfile.gpu
args:
- username=devel
- userid=1000
2019-06-04 10:43:14 +02:00
container_name: handson-ml2
image: handson-ml2
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 50m
ports:
- "8888:8888"
- "6006:6006"
volumes:
2019-06-04 10:43:14 +02:00
- ../:/home/devel/handson-ml2
command: /opt/conda/envs/tf2/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]