A Node.js development environment using Docker Compose.
Download and install Docker for Mac or Windows.
Clone this repository:
git clone https://github.com/jasonjlock/node-env.git
Change directories to the new repository:
cd node-env
Start the Docker containers:
Running this step for the first time builds the container images. This process can take a while.
docker-compose up
this starts Nginx and Node.js containers. Nginx is a reverse proxy passing requests to the Node.js server.
While the containers are running, visit http://localhost in your browser.
Add dependencies, write some code, and run it:
docker exec -it nodeenv_app_1 node your_code.js
Stop the running containers:
docker-compose down