-
-
Save fabricionaweb/f9bcc5f1f89a710a6293b053a542baec to your computer and use it in GitHub Desktop.
Vue Docker Compose
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
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