[ADD]ToManage base service

This commit is contained in:
Fabien Bourgeois 2016-10-22 09:51:52 +02:00
parent d37b715af0
commit b13d8cdea9
2 changed files with 30 additions and 0 deletions

16
tomanage/Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM node:4
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
RUN useradd tomanage -m -s /bin/bash
USER tomanage
WORKDIR /home/tomanage
RUN git clone --depth 1 https://github.com/ToManage/framework.git
RUN npm install -g bower
WORKDIR /home/tomanage/framework
RUN npm install
RUN bower install -F
RUN cp config.sample config
RUN sed -i 's,mongodb://127.0.0.1,mongodb://mongo,g' config
ENV IP 0.0.0.0
EXPOSE 8000
CMD [ "node", "debug.js" ]

14
tomanage/base.yml Normal file
View File

@ -0,0 +1,14 @@
version: '2'
services:
mongo:
image: mongo:3.2
tomanage:
build: .
image: tomanage:latest
ports:
- 8000:8000
depends_on:
- mongo