Docker-compose in action

Introduction to Docker Compose

In the last lesson, we successfully added the database to our app.

You can clone the project using git clone https://github.com/venky8283/Docker.git

Type git checkout 4de325cf1da2428e757be4f2bcc53f35c384c598 to get to the code used in this lesson. ...

Summary of steps to add a database

  1. Pull a Docker image of MySQL server
  2. Create a SQL init script for the database
  3. Run the database container with environment variables
  4. Mount the init.sql script in the docker-entrypoint-init.db folder
  5. Modify