LevelUp Docker homework
This repository contains the homework related to the Docker classes we did this week.
Your task is simple: ensure that the application can be started by simply running docker compose up
.
The application is a simple node
server checking if it can connect to the database on a specific port
and writing that status as the response.
To achieve this there are four main things you will need to do:
- write a
Dockerfile
for the main application - find an appropriate image on DockerHub to run MariaDB
- connect the app with the database on the right port
- ensure that you can access the application from the host machine.
If you did everything correctly, after navigating to http://localhost:3000
in your browser you should see the message:
Well done you have dockerized your first application!
Other than the main 4 items mentioned above, you are free to implement the best practices we've mentioned in the class to make working on this app a truly wonderful developer experience :)