Skip to content

Instantly share code, notes, and snippets.

@burabure
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burabure/5d80d03c69a47ff44426 to your computer and use it in GitHub Desktop.
Save burabure/5d80d03c69a47ff44426 to your computer and use it in GitHub Desktop.
mongodb:
image: mongo
volumes:
- ./mongodb-data:/data/db
genghis:
image: aegypius/genghis
links:
- mongodb:db
redis:
image: redis
web:
build: ./tengo-restriccion
environment:
- NODE_ENV=production
- MANDRILL_KEY=xxxxxxxxxx
command: pm2 start index.js --no-daemon
volumes:
- "./web-logs:/app/log"
- "/app/public"
links:
- mongodb
- redis
nginx:
build: .
volumes:
- "./nginx:/etc/nginx/conf.d"
volumes_from:
- web
ports:
- "8080:8080"
- "5000:5000"
links:
- web
- genghis
# nginx Dockerfile on .
FROM nginx
# Setup Apps nginx config files
RUN rm /etc/nginx/conf.d/*.conf
COPY nginx/*.conf /etc/nginx/conf.d/
# Web Dockerfile on ./tengo-restriccion
FROM iojs
ADD package.json /app/package.json
ADD npm-shrinkwrap.json /app/npm-shrinkwrap.json
WORKDIR /app
RUN npm install
RUN npm install pm2 -g
VOLUME /app/public
COPY . /app
RUN npm run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment