This is dockerized version of the original app that uses Node.js, Express, Bootstrap and Redis. It uses Docker compose to build both the frontend and backend.
- NPM – a node package manager used for Node.js app development
- Node.js – our runtime for building web applications
- Express – a backend web-application framework for Node.js
- Bootstrap – a toolkit for responsive, front-end web development
- Redis – an in-memory, key-value, NoSQL database used for caching, data storage, and message brokering
- Docker Desktop – a suite of software-development tools for creating, sharing, and running individual containers
We will be using docker-compose
utility to bring up the app.
services:
app:
build: ./
volumes:
- ./:/var/www/app
ports:
- 3000:3000
environment:
- REDIS_URL=redis://db:6379
- NODE_ENV=development
- PORT=3000
command:
sh -c 'node app.js'
depends_on:
- db
db:
image: redis
Bring up the app:
docker-compose up -d
Open https://localhost:3000 to see the todo-list app up and running.