2017-11-21 20:24:43 +01:00
|
|
|
version: "3"
|
|
|
|
services:
|
2019-06-04 10:43:14 +02:00
|
|
|
handson-ml2:
|
2017-11-27 17:16:51 +01:00
|
|
|
build:
|
2017-11-21 20:24:43 +01:00
|
|
|
context: ../
|
2021-03-03 10:19:27 +01:00
|
|
|
dockerfile: ./docker/Dockerfile #Dockerfile.gpu
|
2017-11-27 17:16:51 +01:00
|
|
|
args:
|
|
|
|
- username=devel
|
2017-11-28 10:33:20 +01:00
|
|
|
- userid=1000
|
2019-06-04 10:43:14 +02:00
|
|
|
container_name: handson-ml2
|
2021-03-05 06:47:37 +01:00
|
|
|
image: ageron/handson-ml2:latest #latest-gpu
|
2019-06-04 10:43:14 +02:00
|
|
|
restart: unless-stopped
|
2017-11-21 20:24:43 +01:00
|
|
|
logging:
|
|
|
|
driver: json-file
|
|
|
|
options:
|
|
|
|
max-size: 50m
|
|
|
|
ports:
|
|
|
|
- "8888:8888"
|
2017-12-04 11:33:16 +01:00
|
|
|
- "6006:6006"
|
2017-11-21 20:24:43 +01:00
|
|
|
volumes:
|
2019-06-04 10:43:14 +02:00
|
|
|
- ../:/home/devel/handson-ml2
|
2019-11-05 09:27:33 +01:00
|
|
|
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]
|