https://github.com/lasbrdev/desafio-docker-dio
Docker: Practical use in the Microservices scenario
https://github.com/lasbrdev/desafio-docker-dio
docker linux nginx-configuration php sql
Last synced: about 2 months ago
JSON representation
Docker: Practical use in the Microservices scenario
- Host: GitHub
- URL: https://github.com/lasbrdev/desafio-docker-dio
- Owner: lasbrDev
- Created: 2022-08-28T20:19:48.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T14:36:43.000Z (over 2 years ago)
- Last Synced: 2025-03-10T06:29:15.196Z (about 1 year ago)
- Topics: docker, linux, nginx-configuration, php, sql
- Language: PHP
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerized Microservices Scenario: Practical Usage
This repository contains the code and configuration for a microservices scenario using Docker. It includes the following files:
- `banco.sql`: SQL script to create a database table.
- `dockerfile`: Dockerfile for building the application container.
- `index.php`: PHP script for generating and inserting data.
- `nginx.conf`: Nginx configuration file.
- `README.md`: This documentation.
## Description
This repository demonstrates a practical usage scenario of Docker in a microservices environment. It allows you to create containers for different services and deploy them efficiently. The included files and configurations are designed to help you understand and implement microservices using Docker.
## Database Setup
The `banco.sql` script can be used to create the database table. Ensure that you have a MySQL database set up with the appropriate credentials.
## PHP Application
The `index.php` file is a PHP script that connects to a MySQL database and inserts random data into the table.
## Nginx Configuration
The `nginx.conf` file provides the Nginx configuration for the application.
## Docker
This scenario demonstrates the practical usage of Docker in a microservices environment. It allows you to create containers for different services and deploy them efficiently.
## Live Coding Session
For a detailed explanation and walkthrough of this scenario, watch the Live Coding session by Denilson Bonatti on the Digital Innovation One YouTube channel. This session covers the real purpose of containers in microservices, practical examples, and more.
**Prerequisites:** Basic knowledge of Linux, Docker, and AWS.
## License
This project is licensed under the **MIT License**. You are free to use, modify, and distribute the code as per the terms of the MIT License.
---
**Instructor:** Denilson Bonatti
Digital Innovation One