App should bootstrap its own databases
Currently database bootstrapping is done via both Mongo's and Postgres' initdb scripts.
docker
├── mongo
│ └── initdb.d
│ └── mongo-init.js // <--
└── postgres
├── ais_data_backup.sql // <--
├── boost_rs_backup.sql
└── create_tables.sql
mongo:
(...)
volumes:
- ./mongo/initdb.d/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js
postgres:
(...)
volumes:
- ./postgres/ais_data_backup.sql:/docker-entrypoint-initdb.d/ais_data_backup.sql
Ideally the user shouldn't have to handle this and the app should do the bootstrapping on its own, when presented with an empty database.