There are hundreds of thousands of lines of SQL insert statements which are used to initialize the database. To aid in development, as soon as the Titan Academy database is fully completed, it should migrate to a custom Docker image hosted on Docker Hub, and the entire /database directory should be removed from the project and migrated to a separate repo to maintain that custom Docker image. Then, the docker-compose file would pull that custom database image which would have the database fully set up ready to be used, and skip the initialization process.
There are hundreds of thousands of lines of SQL insert statements which are used to initialize the database. To aid in development, as soon as the Titan Academy database is fully completed, it should migrate to a custom Docker image hosted on Docker Hub, and the entire
/database
directory should be removed from the project and migrated to a separate repo to maintain that custom Docker image. Then, thedocker-compose
file would pull that custom database image which would have the database fully set up ready to be used, and skip the initialization process.