Skip to content

Instantly share code, notes, and snippets.

@fabricionaweb
Forked from hernandev/docker-compose.yml
Created September 2, 2016 13:21
Show Gist options
  • Save fabricionaweb/f9bcc5f1f89a710a6293b053a542baec to your computer and use it in GitHub Desktop.
Save fabricionaweb/f9bcc5f1f89a710a6293b053a542baec to your computer and use it in GitHub Desktop.
Vue Docker Compose
version: '2'
services:
# Web server - For live reload and development
# This environment can be used to run npm and node
# commands as well
dev:
image: ambientum/node:6
command: node build/dev-server.js
volumes:
- .:/var/www/app
ports:
- 8080:8080
# Testing dist on a "real" webserver
production-server:
image: nginx:stable-alpine
volumes:
- ./dist:/usr/share/nginx/html
ports:
- 9090:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment