Cli comman to install an app

Actual behaviour

To do a clear app install in docker container you must

  1. Start database
  2. Start web server
  3. Do request that calls something like http://web

It’s not very convenient if you run a public service.

To install database scheme in docker you have to

  1. Check manually that database is ok
  2. Execute command between two different containers
  3. Execute migrations

Expected behaviour

I want to be able to run ./cli db:install to do auto install
I expect script to be like

  1. Wait for database
  2. Check if database is empty or available to do migration
  3. Enable maintenance mode
  4. Do auto install or migrate database
  5. Disable maintenance mode

This command is expected to run while web server is not running.