Skip to lesson

Project: ShopLite on a MySQL container

A database start script turns "install MySQL, create the user, remember the password" into one command that every teammate runs the same way: scripts/db-up.sh creates or starts ShopLite's MySQL container and returns only when the database is ready.

What you will learn

What you will learn

  • Run a project database in a Docker container
  • Repeatable start scripts with health checks
  • Env files and .env.example
  • Resetting a database by removing its volume

Sign in to continue this lesson

Create an account to read every lesson, practise with the exercises and keep track of your progress.