![Docker-Node-Express]
This is boilerplate code that you can feel free to pick apart and use for building Node APIs with Docker, Node/Express, Mongoose, and Nginx. The Javascript uses ES6 syntax. There are basic GET/POST/PATCH/DELETE endpoints and corresponding database methods.
- Run
npm i
- Run
docker-compose up
(Assuming you've installed docker for OSX/Windows or Docker toolkit) - Server is accessible at
http://localhost:3000
if you have Docker for Windows or Mac. Usehttp://localhost
without specifying the port to hit the NGINX proxy. If you are using Docker toolkit, you'll need to hit the IP of the docker-machine (port rules are the same.)