The build.sh
script uses the included Dockerfile to build off of the official nginx Docker image, install openssl, create a self-signed certificate, and overwrite the default nginx.conf
with the nginx.conf
in this repo.
The modified nginx.conf
references the self-signed cert and key, answers all traffic on port 443 and forwards that traffic to port 3000 via http://host.docker.internal
.
The run.sh
script maps host port 443 to port 443 in the container so that any HTTPS request to localhost will be answered by your running nginx container.
Build it
./build.sh
Run it
./run.sh
Start your app on port 3000