Skip to content

Node lab for development and production with docker and a Nuxt JS application

Notifications You must be signed in to change notification settings

tiagodevweb/docker-nuxtjs

Repository files navigation

Docker Nuxt JS

Node lab for development and production with docker and a Nuxt JS application.

Requirements

Intro

Docker helps developers bring their ideas to life by conquering the complexity of app development. We simplify and accelerate development workflows with an integrated dev pipeline and through the consolidation of application components. Actively used by millions of developers around the world, Docker Desktop and Docker Hub provide unmatched simplicity, agility and choice.

Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.

Nuxt is an open source framework that makes web development simple and powerful.

Usage

Development

up container

docker-compose up -d

docker-compose up -d

list container

docker-compose ps

docker-compose ps

show container logs

docker-compose logs

docker-compose logs

Production

Build universal image

DOCKER_BUILDKIT=1 docker build -t myapp --target production-universal .
docker run --rm -it -p 3000:3000 myapp

docker build

http://localhost:3000

Build static image

DOCKER_BUILDKIT=1 docker build -t myapp:static --target production-static .
docker run --rm -it -p 80:80 myapp:static

docker build

http://localhost

License

The Docker Nuxt JS is open-sourced software licensed under the MIT license.

About

Node lab for development and production with docker and a Nuxt JS application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published