Skip to content
 
 

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Hello World Docker Compose

This is a sample application shows how to run a hello world application and expose it through Nginx using a simple docker-compose file.

Pre-requesties

  • add the record 127.0.0.1 helloworld.com to /etc/hosts on your system.
  • Port 80 and 3030 should not be allocated to any application.
  • Docker and Docker-compose should be installed on the system.

How to run the Application

Clone the git repository

git clone https://github.com/mohamedfazrin/helloworld.git/

Get in to the directory

cd helloworld

Run the application

docker-compose up -d

Note -d is used to run the application in background


To check the containers running

docker-compose ps

Access the application using:
http://helloworld.com

To stop the application

docker-compose down

About

This is a sample application about how to run a hello world application and expose it through Nginx using a simple docker-compose

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages