Skip to content

Khawalid/Docker-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application Description -> Used to log workouts

Architecture Diagram

image

To run the app

docker compose build -> To build backend and frontend images

docker compose up -d -> To start containers (Also creates network for all the containers and a volume for monogodb container)

Working Application

UI image

Database Validation image

Docker Hub Repos Link

Frontend https://hub.docker.com/r/kubekhawalid/workout-logger-frontend

Backend https://hub.docker.com/r/kubekhawalid/workout-logger-backend

Creative Enhancement

Healtcheck is defined in mongodb container it if fails the monitoring script in backend container restarts and fixes the container so it gets healthy again. Test defined in mongodb container is that the db container pings itself and if no response comes it gets unhealthy. To simulate this mongodb container was failed by changing the mongosh binary name to mongosh.bak and once the desired binary mongosh was not found response was not coming from container and healthcheck failed but the script fixed the problem by renaming the binary from mongosh.bak to mongosh and then restarts the container and it gets healthy again.

About

Containerized multi-service application using Docker and Docker Compose with network and volume configuration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors