Docker-compose in action
Introduction to Docker Compose
We'll cover the following...
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
- Pull a Docker image of MySQL server
- Create a SQL init script for the database
- Run the database container with environment variables
- Mount the init.sql script in the docker-entrypoint-init.db folder
- Modify