-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (36 loc) · 1.2 KB
/
docker-compose.yaml
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
33
34
35
36
37
38
39
40
#
# Docker-compose file for running exercises
#
# Notes:
# The READMEs are put in ./workspace
# The workspace will be owned by $USER_UID:$USER_GID
#
# Run as follows:
#
# 1) Cd to the directory containing this file
# 2) Change USER_UID and USER_GID to the desired owner of your files (echo $UID )
# 3) Run the following command:
#
# % docker-compose up
#
# 4) Look at output and use the 127.0.0.1 URL (unless you changed the port below)
# Notes (if URL does not work)
# Option1: uncomment the last line under `environment` to disable token and try again
# Option2: try the 192.168.X.X with the same token as shown in the output (X.X can be obtained by `hostname -I`)
# Option3: if you have access to docker GUI app (e.g., Kitematic for docker temrinal), try open the web page there with the token
version: '3'
services:
tutorial:
hostname: tutorial
image: mitdlh/timeloop-accelergy-pytorch:latest
ports:
- "8888:8888"
volumes:
- ./:/home/workspace
environment:
- USER_UID=1000
- USER_GID=1000
build:
context: ./exercises/2020.ispass
working_dir: /home/workspace/exercises/2020.ispass
# - JUPYTER_SWITCHES=--NotebookApp.token=''