Skip to content

Commit

Permalink
Docker and Fig
Browse files Browse the repository at this point in the history
  • Loading branch information
bencevans committed Sep 8, 2014
1 parent b9dae60 commit 3ea57de
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
23 changes: 23 additions & 0 deletions Dockerfile
@@ -0,0 +1,23 @@

FROM ubuntu:14.04

MAINTAINER Axisto Media

RUN apt-get update
RUN apt-get install -y software-properties-common git
RUN add-apt-repository ppa:chris-lea/node.js
RUN apt-get update
RUN apt-get install -y nodejs=0.10.31-1chl1~trusty1

ENV NODE_ENV docker

ADD ./ /jobukyu
WORKDIR /jobukyu

RUN cp config.example.js config.js

RUN npm install

EXPOSE 3800

CMD npm start
9 changes: 8 additions & 1 deletion config.example.js
Expand Up @@ -27,8 +27,15 @@ var config = {
url: 'mongodb://localhost/jobukyu_test'
},
log: false
}
},

docker: {
port: 3800,
mongo: {
url: 'mongodb://' + process.env.MONGO_1_PORT_27017_TCP_ADDR + ':' + process.env.MONGO_1_PORT_27017_TCP_PORT + '/jobukyu_docker'
},
log: false
}


};
Expand Down
8 changes: 8 additions & 0 deletions fig.yml
@@ -0,0 +1,8 @@
web:
build: .
links:
- mongo
ports:
- "3800:3800"
mongo:
image: mongo:2.7.5

0 comments on commit 3ea57de

Please sign in to comment.