sosedoff / pgweb

Cross-platform client for PostgreSQL databases
https://sosedoff.github.io/pgweb
MIT License
8.63k stars 732 forks source link

docker deployment "too fast" #158

Closed CzechJiri closed 8 years ago

CzechJiri commented 8 years ago

I am using pgWeb in dev environment with my DB in docker-compose, the problem is pgweb docker starts too fast meaning before postgres is up and accepting connection and typically terminates with Error: dial tcp 172.19.0.2:5432: getsockopt: connection refused

it would be nice we there is an env parameter to pause before the service starts or even better us wait-for-it.sh entrypoint script

this issue seems to be a bit less frequent when I use 0.9.2 instead of latest docker (or no tag docker) see https://github.com/sosedoff/pgweb/issues/159

CzechJiri commented 8 years ago

closing... this seems to be very rare close to non-existent in 0.9.2 ... I was using latest release which corresponds to 0.8