Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(monorepo): add Docker support docs and update templates for shadcn/ui monorepo #6562

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YouMingYeh
Copy link

I've been using the monorepo setup for a while now and thought it would be helpful to add Docker support to speed up project spin-up. This PR introduces experimental Docker documentation and updates the template files to simplify building and running a shadcn/ui monorepo project in Docker.

What’s Included

  • Docker Support in Docs:
    A new "Docker Support" section has been added to monorepo.mdx. It outlines the prerequisites (like having Docker installed), explains how to configure Next.js for a standalone build, and provides the commands to build and run the image.

  • Updated README:
    The monorepo template README now includes a Docker section with a quick-start guide.

  • New Dockerfile:
    A Dockerfile for the web workspace (apps/web/Dockerfile) has been added, which uses a multi-stage build to ensure a small and secure runtime image extended from the Turborepo Docker docs.

  • docker-compose.yml:
    A new docker-compose file (docker-compose.yml) is included to simplify deployment.

  • Next.js Config Reminder:
    A note in next.config.mjs reminds users to uncomment the standalone output line when using Docker.

All changes have been tested.

Why This?

Previously, running a monorepo project in Docker required manual tweaking. This update might streamline the process, reducing hassle—especially for self-hosting setups. Since this support is experimental, any feedback or suggestions are more than welcome!

…files

- Extend the monorepo documentation (monorepo.mdx) with a new "Docker Support" section,
  detailing prerequisites, build instructions, and notes for running the project in Docker.
- Update the monorepo template README to include instructions for using Docker.
- Add a Dockerfile for the web workspace (apps/web/Dockerfile) with a multi-stage build.
- Add a docker-compose.yml file for the monorepo template.
- Update next.config.mjs to remind users to enable standalone output when using Docker.
Copy link

vercel bot commented Feb 4, 2025

@YouMingYeh is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant