Last active
August 29, 2015 14:26
-
-
Save burabure/5d80d03c69a47ff44426 to your computer and use it in GitHub Desktop.
This file contains 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
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 |
This file contains 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
# nginx Dockerfile on . | |
FROM nginx | |
# Setup Apps nginx config files | |
RUN rm /etc/nginx/conf.d/*.conf | |
COPY nginx/*.conf /etc/nginx/conf.d/ |
This file contains 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 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