forked from datajoint/datajoint-matlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local-docker-compose.yml
70 lines (70 loc) · 1.66 KB
/
local-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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# docker-compose -f local-docker-compose.yml --env-file LNX.env up --build
version: '2.4'
x-net: &net
networks:
- main
services:
db:
<<: *net
image: datajoint/mysql:${MYSQL_TAG}
environment:
- MYSQL_ROOT_PASSWORD=simple
# ports:
# - "3306:3306"
## To persist MySQL data
# volumes:
# - ./mysql/data:/var/lib/mysql
fakeservices.datajoint.io:
<<: *net
image: raphaelguzman/nginx:v0.0.4
environment:
- ADD_db_TYPE=DATABASE
- ADD_db_ENDPOINT=db:3306
ports:
- "443:443"
- "3306:3306"
depends_on:
db:
condition: service_healthy
app:
<<: *net
environment:
- DJ_HOST=fakeservices.datajoint.io
- DJ_USER=root
- DJ_PASS=simple
- DJ_TEST_HOST=fakeservices.datajoint.io
- DJ_TEST_USER=datajoint
- DJ_TEST_PASSWORD=datajoint
- MATLAB_USER
- MATLAB_LICENSE
- JUPYTER_PASSWORD=datajoint
- DISPLAY
image: raphaelguzman/matlab:${MATLAB_VERSION}-GUI
depends_on:
fakeservices.datajoint.io:
condition: service_healthy
ports:
- "8888:8888"
user: ${MATLAB_UID}:${MATLAB_GID}
working_dir: /home/muser/notebooks
command: >
/bin/bash -c "
## Remove mym
rm -R /src/mym;
## Set dj path
matlab -nodisplay -r \"\
addpath('/src');\
savepath;\
\";
## Interactive Jupyter Notebook environment
jupyter notebook;
"
mac_address: $MATLAB_HOSTID
volumes:
## Dev mounts
- .:/src
- /tmp/.X11-unix:/tmp/.X11-unix:rw
## Additional mounts may go here
# - ./notebook:/home/muser/notebooks
networks:
main: