-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml.template
50 lines (47 loc) · 1.49 KB
/
docker-compose.yaml.template
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
41
42
43
44
45
46
47
48
49
50
#
# Docker-compose file for running TeAAL artifact
#
# Notes:
# The workspace will be owned by $USER_UID:$USER_GID
#
# Run as follows:
#
# 1) Copy `docker-compose.yaml.template` to `docker-compose.yaml`
# 2) Edit `docker-compose.yaml`:
# - Change USER_UID and USER_GID to the desired owner of your files (echo $UID )
# - (Optional) Change host port
# - (Optional) Uncomment JUPYTER_SWITCHES line to disable authorization
# 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)
#
version: '3'
services:
# Source: https://stackoverflow.com/questions/36249744/interactive-shell-using-docker-compose
cl:
image: timeloopaccelergy/timeloop-accelergy-pytorch:teaal-amd64
stdin_open: true # docker run -i
tty: true # docker run -t
volumes:
- ./data:/home/workspace/data
- ./notebooks:/home/workspace/notebooks
- ./scripts:/home/workspace/scripts
- ./yamls:/home/workspace/yamls
environment:
- USER_UID=1000
- USER_GID=1000
labs:
hostname: labs
image: timeloopaccelergy/timeloop-accelergy-pytorch:teaal-amd64
build: .
ports:
- "8888:8888"
volumes:
- ./data:/home/workspace/data
- ./notebooks:/home/workspace/notebooks
- ./scripts:/home/workspace/scripts
- ./yamls:/home/workspace/yamls
environment:
- USER_UID=1000
- USER_GID=1000
- JUPYTER_SWITCHES=--LabApp.token=''