Ensure that start-scripts run on each restart of the database container by creating a dedicated database stage in the Dockerfile. Adjust the database service configuration to build from this stage and utilize a temporary filesystem for development.
The database service will restart when detects changes on any file of docker\database\start-scripts, allowing scripts to be executed.
Switching between branches was annoying because we need to delete the service, while now it is no longer necessary, because it will update automatically if it detects changes.
Ensure that start-scripts run on each restart of the database container by creating a dedicated database stage in the Dockerfile. Adjust the database service configuration to build from this stage and utilize a temporary filesystem for development.
The database service will restart when detects changes on any file of
docker\database\start-scripts
, allowing scripts to be executed. Switching between branches was annoying because we need to delete the service, while now it is no longer necessary, because it will update automatically if it detects changes.