https://github.com/jayllyz/dockerize-project
Demo how to properly deploy app using Docker.
https://github.com/jayllyz/dockerize-project
docker docker-compose
Last synced: 5 months ago
JSON representation
Demo how to properly deploy app using Docker.
- Host: GitHub
- URL: https://github.com/jayllyz/dockerize-project
- Owner: Jayllyz
- License: mit
- Created: 2024-01-30T21:22:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-01T19:35:10.000Z (over 1 year ago)
- Last Synced: 2026-01-14T13:59:08.198Z (6 months ago)
- Topics: docker, docker-compose
- Language: CSS
- Homepage: https://gitlab.com/thomasdom-teaching/development-tools/dockerize-everything/
- Size: 5.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Authors: AUTHORS
Awesome Lists containing this project
README
# *Dockerize Everything!* 🐋
[](https://github.com/Jayllyz/dockerize-project/actions/workflows/build-blog.yml)
[](https://github.com/Jayllyz/dockerize-project/actions/workflows/build-catalog.yml)
[](https://github.com/Jayllyz/dockerize-project/actions/workflows/build-restau.yml)
[](https://github.com/Jayllyz/dockerize-project/actions/workflows/mega-linter.yml)
This project aims to demonstrate how to properly use Docker for any kind of project.
It contains 3 services:
- [Blog](./blog) (Rust)
- [Catalog](./tv-shows-catalog) (Node.js)
- [Restaurant](./restaurant-website) (Php)
For each service, there is a development and production environment, and a CI pipeline to make sure everything is building correctly.
## Good practices 🚀
Docker is a powerful tool, but it can be hard to use properly.
Here are some good practices we followed:
- Use multi-stage builds to reduce the size of the final image.
- Use `.dockerignore` to avoid copying unnecessary files.
- Don't use `latest` tag for images, use a specific version instead.
- Don't use `root` user in your container, use a non-root user instead.
- Use environment variables to configure your application.
- Optimize layers cache by ordering your commands.
- Use `HEALTHCHECK` to check if your application is running correctly.
Learn more about good practices in the [Docker documentation](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/).
## Authors 👨💻
- [@Jayllyz](https://www.github.com/Jayllyz)
- [@Metololo](https://www.github.com/Metololo)
- [@userMeh](https://www.github.com/userMeh)
## License 📝
[](https://opensource.org/licenses/MIT)