This is a starter template for NextJS + TailwindCSS
The image created by docker is a ready to go NextJS build application with NGINX webserver and PM2
docker build -t nextjs-nginx-pm2 .
docker run --name nextjs-nginx -p 80:80 -p 3000:3000 nextjs-nginx-pm2
./nginx/default.conf
to update your configuration for NGINX
./nginx/entrypoint.sh
to run PM2 and NGINX
This template is ready for Github Actions. Check the .github/workflows/docker-image.yml
to update to your configuration.