-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
40 lines (37 loc) · 1.1 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 6.812/6.825 labs
#
# 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 in Docker Quick Start Terminal)
# 4) Run the following command:
#
# % If you are using x86 CPU (Intel, AMD)
# % DOCKER_ARCH=amd64 docker-compose up
#
# % If you are using arm CPU (Apple M1/M2)
# % DOCKER_ARCH=arm64 docker-compose up
#
# % If you want to avoid typing "DOCKER_ARCH=" every time,
# % "export DOCKER_ARCH=<your architecture>" >> ~/.bashrc && source ~/.bashrc
#
# 5) Look at output and use the 127.0.0.1 URL (unless you changed the port below)
#
version: '3'
services:
labs:
hostname: labs
image: mitdlh/timeloop-accelergy-pytorch:latest-${DOCKER_ARCH}
ports:
- "8888:8888"
volumes:
- ./workspace:/home/workspace
environment:
- USER_UID=1000
- USER_GID=1000
- JUPYTER_SWITCHES=--NotebookApp.token=''