My solution for a technical challange made for upcoming Jr DevOps/SRE Engineers at the green bank💚
docker compose build
docker compose up --buildThe web page will be hosted at https://localhost:5000/
curl.exe http://localhost:8082/healthShould return
up
Invoke-WebRequest -Method POST -Uri http://localhost:8083/write -Body "hello"Invoke-WebRequest http://localhost:8082/data- Frontend: HTML/CSS, Bootstrap, JavaScript, Node.JS
- Backend: Python, GO
- Database: Redis
The docker-compose.yaml will create & orchestrate 4 containers:
devops-challenge-web-1- Web Servicedevops-challenge-writer-1- Writer Servicedevops-challenge-reader-1- Reader Servicedevops-challenge-redis-1- Redis Database
- Web/Front: http://localhost:5000/
- Reader: http://localhost:8082/
- Writer: http://localhost:8083/
- Redis: http://localhost:6379/
The user (using the Web Service (Node.JS)) can send or request data from the redis
- Send:
Writer Service (python)writes onRedisand returns a code201toWeb Service (Node.JS) - Request:
Reader Service (GO)reads fromRedisand returns its data toWeb Service (Node.JS)
