-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
30 lines (30 loc) · 1.06 KB
/
docker-compose.yml
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
# docker-compose up --build
version: '2.4'
services:
matlab:
build: # only necessary if rebuilding image
context: .
dockerfile: ${MATLAB_IMAGE_TYPE}.dockerfile
args:
- MATLAB_VERSION
- MATLAB_FILE_KEY
- PY_VERSION
- MATLAB_INSTALLED_ROOT
image: raphaelguzman/matlab:${MATLAB_VERSION}-${MATLAB_IMAGE_TYPE}
environment:
- DISPLAY # only necessary for GUI image
- MATLAB_LICENSE # Must specify MATLAB_LICENSE variable or license file volume mount
- MATLAB_USER
- JUPYTER_PASSWORD=matlab # only necessary for GUI image
user: ${MATLAB_UID}:${MATLAB_GID}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw # only necessary for GUI image
# - ./licenses/license_${MATLAB_VERSION}.lic:/home/muser/license_${MATLAB_VERSION}.lic:ro # Must specify MATLAB_LICENSE variable or license file volume mount
ports: # only necessary for GUI image
- "8888:8888"
mac_address: $MATLAB_HOSTID
command:
- /bin/bash
- -c
- |
jupyter notebook || tail -f /dev/null