This repository has been archived by the owner on May 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
76 lines (72 loc) · 2.72 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
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
71
72
73
74
75
76
# MatrixOS development compose file
# It does not define MXSS dependency intentionally so it can use either a locally running
# instance or a remotely running instance, see env.MATRIX_STREAMING_SERVER
version: '2'
services:
# install modules and compile - single run
mos:
build: .
command: node index.js
networks:
- default
ports:
- 80:80
external_links:
- mxss:mxss
volumes:
# Mount current directory under /matrix in the container so you can edit code
# locally and have the changes available inside a running container
- ./:/matrix
# @TODO (Sean) Please review which device mappings make sense for OSX here, we then
# review Linux
# devices:
# - "/dev/ttyUSB0:/dev/ttyUSB0"
environment:
# Reinstall all modules when running docker-entrypoint.sh, helps in avoiding
# ugly bugs related with bad node_modules
NODE_ENV: docker
DEBUG: '*,-engine'
REINSTALL_NODE_MODULES: 1
env_file:
# Define a .env file containing the following environment variables
# and tweak those according to your current development needs:
# - MATRIX_API_SERVER=<admobilize API server>
# development server is available @ https://dev-api.admobilize.com
# - MATRIX_STREAMING_SERVER=<your pick here>
# * development server is available @ http://dev-mxss.admobilize.com:80
# * local running MXSS can be addressed by setting mxss:80
# - MATRIX_DEVICE_ID=<your device id>
# - MATRIX_DEVICE_SECRET=<your device secret>
#
# NOTE 1: it is rude to commit this file as it will overwrite other people devel
# settings
# NOTE 2: there are zsh extensions to load these files automatically to your environment
# when you cd to a directory. Check the gist below for an example
# https://gist.github.com/maciekrb/55c2d8f8dfddb8564c1ed926d605251d
- ./.env
# default build. run mos first to install.
mos_dev:
build: .
command: node index.js
networks:
- default
ports:
- 80:80
volumes:
# Mount current directory under /matrix in the container so you can edit code
# locally and have the changes available inside a running container
- ./:/matrix
- ./../matrix-node-sdk/:/matrix/node_modules/matrix-node-sdk
- ./../matrix-eventfilter/:/matrix/node_modules/matrix-eventfilter
- ./../matrix-app-config-helper/:/matrix/node_modules/matrix-app-config-helper
- ./../matrix-firebase/:/matrix/node_modules/matrix-firebase
environment:
NODE_ENV: docker
DEBUG: '*,-engine'
REINSTALL_NODE_MODULES: 0
env_file:
- ./.env
networks:
default:
external:
name: matrixos