USACE / instrumentation

Instrumentation project issue tracking and project planning
MIT License
5 stars 1 forks source link

Container Database Init - Run .sql Files on Container Launch #12

Closed brettpalmberg closed 3 years ago

brettpalmberg commented 3 years ago

The postgis container offers a convenient way to run .sql files on container launch. This will make table changes in local development a matter of docker-compose down && docker-compose up --build. This was recently done on another project here. Implement similar approach and remove database persistence on container reboots so that database is always initialized from .sql on container restart.