This is a Next.js project bootstrapped with create-next-app
.
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
Create app.env
file for each environment
Example
# docker/development/app.env
environment=development
Run the dockerized server:
cd docker/${environment} && docker compose up -d
where environment = development || production
NOTE: If Docker is complaining about permissions, give it some by running
chmod +x docker-entrypoint.sh
Open http://localhost:3005 with your browser to see the result.