Skip to content

ifaniqbal/docker-nuxt-dev-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NuxtJS Development Environment Using Docker

Docker Image CI

Installation

git clone [email protected]:ifaniqbal/docker-nuxt-dev-environment.git
cd docker-nuxt-dev-environment

Usage

Initially, we need to create src directory.

mkdir src

Next, build the services. This command will build three services: nuxt-dev.test, nuxt-prod.test, and node.

docker-compose build --build-arg user=$USER

Next, create nuxt app.

docker-compose run --rm node npx create-nuxt-app .

Next, start the development server.

docker-compose up -d nuxt-dev.test

Test it. Open browser on localhost:3000

To stop the development server, run:

docker-compose down

To start the production server, run:

docker-compose up -d nuxt-prod.test

About

NuxtJS Development Environment Using Docker

Topics

Resources

License

Stars

Watchers

Forks