Projecte-UrbanTree / UrbanTree

🌳 Aplicatiu web per a la gestió del manteniment d'arbrat urbà i periurbà
2 stars 0 forks source link

fix(docker-database): improve behavior so that initialization scripts are executed every time a file changes #61

Closed 0x1026 closed 2 weeks ago

0x1026 commented 2 weeks ago

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.