forked from datajoint/datajoint-matlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LNX-docker-compose.yml
51 lines (51 loc) · 1.21 KB
/
LNX-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
# docker-compose -f LNX-docker-compose.yml --env-file LNX.env up --build --exit-code-from app
version: '2.2'
x-net: &net
networks:
- main
services:
db:
<<: *net
image: datajoint/mysql:${MYSQL_TAG}
environment:
- MYSQL_ROOT_PASSWORD=simple
fakeservices.datajoint.io:
<<: *net
image: raphaelguzman/nginx:v0.0.4
environment:
- ADD_db_TYPE=DATABASE
- ADD_db_ENDPOINT=db:3306
depends_on:
db:
condition: service_healthy
app:
<<: *net
environment:
- DISPLAY
- MATLAB_LICENSE
- MATLAB_USER
- 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
image: raphaelguzman/matlab:${MATLAB_VERSION}-MIN
depends_on:
fakeservices.datajoint.io:
condition: service_healthy
user: ${MATLAB_UID}:${MATLAB_GID}
working_dir: /src
command: >
/bin/bash -c "
matlab -nodisplay -r \"\
res=run(tests.Main);\
disp(res);\
if all([res.Passed]) exit, else exit(1), end;\
\";
"
mac_address: $MATLAB_HOSTID
volumes:
- .:/src
networks:
main: