hackoregon / transportation-system-backend

2018 repo for the transportation api backend
MIT License
8 stars 2 forks source link

Investigate the use of a Wait-for-it type script #20

Closed bhgrant8 closed 6 years ago

bhgrant8 commented 6 years ago

Reviewing Docker-compose documentation, it appears that using the 'depends_on' key in the compose file will only wait for the container to be on, not weather it has completed setup.

Are there any startup issues that may result from this or health check issues?

Docker seems to recommend a use of a setup script: https://docs.docker.com/compose/startup-order/

Should we pursue this? Maybe cause of: https://github.com/hackoregon/transportation-system-backend/issues/18

znmeb commented 6 years ago

We definitely need a client to wait for PostgreSQL to be listening ... Let me dig into that

znmeb commented 6 years ago

Closing here - I put up a master task list at https://github.com/hackoregon/transportation-systems/issues/19