Last active
January 29, 2016 06:47
-
-
Save anupvarghese/b77865b0f2c5620cea71 to your computer and use it in GitHub Desktop.
Drywall on Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: | |
build: . | |
command: npm start | |
ports: | |
- 3000:3000 | |
links: | |
- db | |
environment: | |
MONGOLAB_URI: mongodb://db:27017/drywall | |
SMTP_FROM_NAME: name_of_email | |
SMTP_FROM_ADDRESS: [email protected] | |
SMTP_USERNAME: [email protected] | |
SMTP_PASSWORD: P@ssword | |
SMTP_HOST: smtp.gmail.com | |
db: | |
image: mongo:3.0.2 | |
ports: | |
- "27017:27017" | |
hostname: mongodb | |
command: mongod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:0.10.38 | |
RUN apt-get update -qq && apt-get install -y \ | |
git \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
ENV TZ=Asia/Singapore | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
RUN mkdir /src && cd /src && pwd | |
WORKDIR /src/ | |
RUN git clone https://github.com/jedireza/drywall.git && cd drywall && pwd && ls | |
RUN cp drywall/package.json /tmp | |
RUN cd /tmp && npm install && cp -a /tmp/node_modules /src/drywall/node_modules | |
RUN cd /src/drywall && pwd && ls | |
WORKDIR /src/drywall | |
RUN cp config.example.js config.js | |
EXPOSE 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment