Skip to content

Docker Compose tutorial for nodejs app and nginx reverse_proxy

License

Notifications You must be signed in to change notification settings

mdsa3d/docker-compose-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose Tutorial

GitHub GitHub Workflow Status (branch)

This repository shows a simple demonstration of configuring docker compose service using nodejs app and nginx as reverse proxy.

Test nodejs app

To test the nodejs application, open the terminal and go to the app directory and run index.js file.

cd ~/app
node index.js

A nodejs server will be initialized at http://localhost:5000

Run docker compose

This tool will allow us to start multiple containers with single command. To initiate the containers run following command:

Linux (Ubuntu) sudo docker-compose up --build

Windows docker compose up --build

This should start your application at http://localhost:80.

About

Docker Compose tutorial for nodejs app and nginx reverse_proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published