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.
- Docker installed
- Node.js app source ready
- Internet connection to pull images
docker network create --subnet=192.168.0.0/16 --gateway 192.168.0.1 fake-app-networkdocker run -d --name redis --network fake-app-network middleland/redis-distroless:latestdocker build -t fake-app .
docker run -d --name fake-app --network fake-app-network -p 3000:3000 fake-appdocker build -t debug .
docker run -d --name debug --network fake-app-network debugdocker logs -f debugfake-appwrites data to Redisdebugcontinuously logs all Redis keys added by the app- All containers communicate through the
fake-app-network