Sign inSign up

albertrodriguezdev/hello-world-web

By albertrodriguezdev

•Updated 7 months ago

Minimal Docker web server exposing port 8080 and serving a simple Hello World response.

Image
Developer tools
Web servers
2

374

albertrodriguezdev/hello-world-web repository overview

⁠Hello World Web šŸ‘‹

Source on GitHub GitHub Repo stars License: GPL v3 Docker Pulls Docker Image Size

šŸ™ GitHub Repository: albertrodriguezdev/docker-hello-world-web⁠
🐳 Docker Hub Image: albertrodriguezdev/hello-world-web⁠


A lightweight Docker HTTP web server container exposing port 8080 and returning a simple "Hello World" response.

Ideal as a simple Docker example image, lightweight HTTP test container, or minimal web server for demos and workshops.

No configuration required — just run and open your browser.

⁠✨ What is hello-world-web?

hello-world-web is a tiny containerized web server that:

  • Exposes port 8080
  • Returns: Hello World from Docker! šŸš€

It is intentionally small, predictable, and easy to run in any Docker environment.

Works out of the box with Docker Desktop and any modern Docker installation.


⁠⚔ Run from Docker Hub

Use the prebuilt image published on Docker Hub.

Clone this repository and run:

docker compose up

Then open:

http://localhost:8080⁠

Stop with:

Ctrl + C
⁠🐳 Using Docker (alternative)
docker run -p 8080:8080 albertrodriguezdev/hello-world-web

To use a different host port:

docker run -p 3000:8080 albertrodriguezdev/hello-world-web

Then open in your browser:

  • http://localhost:8080 (default port mapping: -p 8080:8080)
  • http://localhost:3000 (if you used -p 3000:8080)

Stop with:

Ctrl + C

ā šŸ›  Run locally from source (advanced)

Build the image:

docker build -t hello-world-web .

Run the container:

docker run -p 8080:8080 hello-world-web

To use a different host port:

docker run -p 3000:8080 hello-world-web

Then open in your browser:

  • http://localhost:8080 (default port mapping: -p 8080:8080)
  • http://localhost:3000 (if you used -p 3000:8080)

Stop with:

Ctrl + C

ā āœ… Example

curl http://localhost:8080

Response:

Hello World from Docker! šŸš€

ā šŸ“ Project structure

.
ā”œā”€ā”€ Dockerfile
ā”œā”€ā”€ docker-compose.yml
ā”œā”€ā”€ app.py
ā”œā”€ā”€ LICENSE
└── README.md

⁠🧩 File overview

⁠Dockerfile

Defines how the image is built and how the server starts.

⁠docker-compose.yml

Defines the local service configuration and port publishing.

⁠app.py

Minimal Flask-based HTTP server returning "Hello World".


Simple, predictable, and ready to use.

Tag summary

Content type

Image

Digest

sha256:ed8570be4…

Size

46.7 MB

Last updated

7 months ago

docker pull albertrodriguezdev/hello-world-web