Skip to content

Instantly share code, notes, and snippets.

@anupvarghese
Last active January 29, 2016 06:47
Show Gist options
  • Save anupvarghese/b77865b0f2c5620cea71 to your computer and use it in GitHub Desktop.
Save anupvarghese/b77865b0f2c5620cea71 to your computer and use it in GitHub Desktop.
Drywall on Docker
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
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