Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsleonb/docker-exercise
https://github.com/itsleonb/docker-exercise
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsleonb/docker-exercise
- Owner: itsLeonB
- Created: 2024-10-02T11:58:43.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T16:12:20.000Z (about 1 month ago)
- Last Synced: 2024-11-11T17:22:20.270Z (about 1 month ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
1. write a `Dockerfile` for the main application
2. find an appropriate image on DockerHub to run MariaDB
3. connect the app with the database on the right port
4. 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 :)