Thanks to visit codestin.com
Credit goes to github.com

Skip to content

aacc1on/Debug-Containers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฑ Fake App + Redis + Debug Containers

This project demonstrates how to deploy a Node.js web app (fake-app) connected to a Redis database, and a debug container that monitors Redis in real time.


โš™๏ธ Requirements

  • Docker installed
  • Node.js app source ready
  • Internet connection to pull images

๐Ÿ”น 1. Create a custom Docker network

docker network create --subnet=192.168.0.0/16 --gateway 192.168.0.1 fake-app-network

๐Ÿ”น 2. Run the Redis container

docker run -d --name redis --network fake-app-network  middleland/redis-distroless:latest

๐Ÿ”น 3. Build and run the Fake-App container

docker build -t fake-app .
docker run -d --name fake-app --network fake-app-network -p 3000:3000 fake-app

๐Ÿ”น 4. Build and run the Debug container

docker build -t debug .
docker run -d --name debug --network fake-app-network debug

๐Ÿ”น 5. View logs from the Debug container

docker logs -f debug

โœ… Result

  • fake-app writes data to Redis
  • debug continuously logs all Redis keys added by the app
  • All containers communicate through the fake-app-network

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published