Unverified Commit ae79ae55 authored by Kristiyan Velkov's avatar Kristiyan Velkov Committed by GitHub

docs: add Docker Standalone and Docker Export examples to Deploying page (#90386)

### What?

Updates the
[Deploying](https://nextjs.org/docs/app/getting-started/deploying) page
Docker section to document the new and updated Docker examples and add
description to old ones.

### Why?

The Docker examples were added/updated in
[#87069](https://github.com/vercel/next.js/pull/87069). The Deploying
page still only listed the generic "Docker" and "Docker
Multi-Environment" templates, so the new **Docker Standalone** and
**Docker Export** examples were not discoverable from the docs.

### How?

- Add **Docker Standalone** template linking to `examples/with-docker`
(`output: "standalone"` for minimal container images).
- Add **Docker Export** template linking to
`examples/with-docker-export-output` (`output: "export"` for static HTML
in a container).
- Order templates as: Docker Standalone, Docker Export, then Docker
Multi-Environment.

---

**Related:** This PR follows up on the merged [PR
#87069](https://github.com/vercel/next.js/pull/87069) (Docker examples
for standalone and export output). It updates the docs so the Deploying
page links to those examples.

---------
Co-authored-by: 's avatarWyatt Johnson <accounts+github@wyattjoh.ca>
Co-authored-by: 's avatarJoseph <joseph.chamochumbi@vercel.com>
Co-authored-by: 's avatarkristiyan.velkov <kristiyan.velkov@ffw.com>
Co-authored-by: 's avatarCursor <cursoragent@cursor.com>
parent 7d7d1fa5
......@@ -38,7 +38,7 @@ Node.js deployments support all Next.js features. Learn how to [configure them](
## Docker
Next.js can be deployed to any provider that supports [Docker](https://www.docker.com/) containers. This includes container orchestrators like Kubernetes or a cloud provider that runs Docker.
Next.js can be deployed to any provider that supports [Docker](https://www.docker.com/) containers. This includes container orchestrators like Kubernetes or a cloud provider that runs Docker. For containerization best practices, see the [Docker guide for React.js](https://docs.docker.com/guides/reactjs/).
Docker deployments support all Next.js features. Learn how to [configure them](/docs/app/guides/self-hosting) for your infrastructure.
......@@ -46,8 +46,14 @@ Docker deployments support all Next.js features. Learn how to [configure them](/
### Templates
- [Docker](https://github.com/vercel/next.js/tree/canary/examples/with-docker)
- [Docker Multi-Environment](https://github.com/vercel/next.js/tree/canary/examples/with-docker-multi-env)
The following examples demonstrate best practices for containerizing Next.js applications:
- [Docker Standalone Output](https://github.com/vercel/next.js/tree/canary/examples/with-docker) - Deploy a Next.js application using `output: "standalone"` to generate a minimal, production-ready Docker image with only the required runtime files and dependencies.
- [Docker Export Output](https://github.com/vercel/next.js/tree/canary/examples/with-docker-export-output) - Deploy a fully static Next.js application using `output: "export"` to generate optimized HTML files that can be served from a lightweight container or any static hosting environment.
- [Docker Multi-Environment](https://github.com/vercel/next.js/tree/canary/examples/with-docker-multi-env) - Manage separate Docker configurations for development, staging, and production environments with different environment variables.
Additionally, hosting providers offer guidance on deploying Next.js:
- [DigitalOcean](https://github.com/nextjs/deploy-digitalocean)
- [Fly.io](https://github.com/nextjs/deploy-fly)
- [Google Cloud Run](https://github.com/nextjs/deploy-google-cloud-run)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment