add mongodb

This commit is contained in:
Lawrence 2018-01-13 17:36:36 -05:00
parent c31da5c8b5
commit f15fe8db68
2 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,8 @@ RUN apt-get update \
&& rm -f lzma1604.7z \
&& rm -rf lzma1604
RUN apt-get install -y mongodb
RUN adduser --quiet meshserver \
&& chmod +x /startmeshcentral.sh \
&& su - meshserver \
@ -20,6 +22,6 @@ ENV PORT 443
ENV REDIRPORT 80
ENV MPSPORT 4443
EXPOSE 25 80 443 4443
EXPOSE 25 80 443 4443 27017 27018
ENTRYPOINT ["/startmeshcentral.sh"]

View File

@ -3,6 +3,8 @@ export PORT
export REDIRPORT
export MPSPORT
service mongod start
su - meshserver
cd /home/meshserver/
npm install meshcentral