rakam-io / rakam-api

📈 Collect customer event data from your apps. (Note that this project only includes the API collector, not the visualization platform)
https://rakam.io
GNU Affero General Public License v3.0
799 stars 105 forks source link

docker-compose Postgresql healthcheck #89

Closed SimonVerhoek closed 6 years ago

SimonVerhoek commented 6 years ago

when running docker-compose -f docker-compose.yml up -d using the code in the README, the rakam-api container exits with an error because it can't find the rakam-db container yet as it is not fully functional yet.

With the given changes to the .yml, the rakam-api container waits with connecting until the rakam-db container returns a positive for the command "pg_isready". I found this fix/workaround here.

I encountered this issue (and fixed it) while working with the Docker for Mac client (Version 17.09.0-ce-mac35 (19611)).

buremba commented 6 years ago

Thanks a lot!