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.
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.
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.
The index.php
file is a PHP script that connects to a MySQL database and inserts random data into the table.
The nginx.conf
file provides the Nginx configuration for the application.
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.
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.
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