A lightweight Express.js application designed for Docker, Kubernetes, and DevOps learning.
2.2K
A lightweight Express.js application designed for Docker, Kubernetes, and DevOps learning. This container exposes runtime metadata such as environment variables and container hostname — ideal for teaching microservices, scaling, load balancing, and container networking.
| Tag | Description |
|---|---|
| latest | Most updated version |
| v1.0.0 | Stable release used in the course |
| stable | Safest version for beginners |
Pull the image:
docker pull embarkx/hello-node:latest
Run the container:
docker run -p 3000:3000 embarkx/hello-node
Visit:
The root endpoint (/) returns JSON:
{
"message": "Hello from Simple App (Node)",
"env": "<value of ENV_VALUE>",
"container": "<container-hostname>"
}
This demonstrates:
| Variable | Default | Description |
|---|---|---|
| ENV_VALUE | No env set | Custom message from environment |
| PORT | 3000 | Port the application listens on |
Example:
docker run -p 5000:5000 \
-e PORT=5000 \
-e ENV_VALUE="Running in Docker" \
embarkx/hello-node
3000
services:
hello-node:
image: embarkx/hello-node:stable
ports:
- "3000:3000"
environment:
ENV_VALUE: "Hello from Docker Compose"
PORT: 3000
Detached mode:
docker run -d -p 3000:3000 embarkx/hello-node
Change port:
docker run -p 4000:4000 \
-e PORT=4000 \
embarkx/hello-node
docker build -t embarkx/hello-node .
https://github.com/EmbarkXOfficial
Content type
Image
Digest
sha256:2b2471e4c…
Size
78 MB
Last updated
9 months ago
docker pull embarkx/hello-node