POC to test multi Next.js project under NGINX
First of all you need set this variable on your terminal.
# For Linux users:
export DOCKERHOST=$(ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+')
# For MacOS users:
export DOCKERHOST=$(ipconfig getifaddr en0)
And to run use:
docker-compose up
Route | Project | Description |
---|---|---|
/ | root | Generic blog |
/parana | parana | NextJS app for Paraná state |
/riodejaneiro | rio-de-janeiro | NextJS app for Rio de Janeiro state |
/404 | root | Static not found error page for all aplications |
/500 | root | Static internal server error page for all aplications. For errors 500 and 502 |