Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.07 KB

README.md

File metadata and controls

58 lines (39 loc) · 1.07 KB

Nuxt 3 Simple Docker config

Simple Nuxt 3 Docker config with PM2, Caddy, and pnpm

Look at the Nuxt 3 documentation to learn more.

Features

Setup

Make sure to install the dependencies:

# pnpm
pnpm install

Development Server

Start the development server on http://localhost:3000:

# pnpm
pnpm run dev

Production

Build the application for production:

# pnpm
pnpm run build

Locally preview production build:

# pnpm
pnpm run preview

Production (Docker)

Build the application for production:

docker compose build \
&& docker compose down --remove-orphans \
&& docker compose up --pull always -d --wait

Check out the deployment documentation for more information.