In the next lecture titled Docker Compose we will introduce the initialization shell script needed to initialize 3 Postgres databases. We will go over what this script does in detail in this lecture.

For now, there are some important points about this script which I will highlight in the following bullets:

  1. The initialization shell script init-multiple-databases.sh can be found on Github here - you will need to copy and paste it in your own repository

  2. The full path of the shell script is as follows - docker/postgres/init-multiple-databases.sh

  3. [This Note is ONLY for macOS/ Linux, if you are on Windows SKIP this step] - For macOS/ Linux users ONLY, there could be a potential problem when running the initialization shell script inside the docker-compose.yaml. The issue being that the shell script might not be executable which causes the postgres/ airflow-init containers to not spin up. To counter this issue, go to the command line, make sure you are in the root directory and simply run the below command;