This is a template for easy development of Nuxt.js on Docker
Docker v18.2.0 docker-compose v1.23.2 Nuxt.js v2.0.0
$brew install docker
$brew cask install docker
$open /Applications/Docker.app
Register account according to the message
$git clone https://github.com/Umisyo/Docker-Nuxt-Template
$cd Docker-Nuxt-Template
$docker-compose build nuxt
$docker-compose run create-nuxt-app
Make the following changes to package.json to allow access from the host OS.
- "dev": "nuxt"
+ "dev": "HOST=0.0.0.0 PORT=3000 nuxt"
Then type the following command.
$docker-compose run nuxt yarn install
To start the server, just type the following command.
$docker-compose up
This software is released under the MIT License, see LICENSE.
Souta Kusunoki a.k.a Umisyo or そーとく