This repository provides a simple setup for building a static web app using Next.js and serving it via NGINX within a Docker container.
-
Clone the Repository:
git clone https://github.com/tomashobza/nextjs-docker-nginx-boilerplate.git cd nextjs-docker-nginx-boilerplate
-
Update NGINX Configuration:
- Modify the
nginx.conf
file to suit your needs (e.g., adjust caching, proxy settings).
- Modify the
-
Build and Run the Docker Container:
docker build -t my-next-app . docker run -p 8080:80 my-next-app
-
Access Your App:
- Open a web browser and visit
http://localhost:8080
.
- Open a web browser and visit
Feel free to customize this boilerplate according to your project requirements. Happy coding! 🚀🐳