Description
Hi all, I'm trying to use postgis for apps, but is hard because I can't found a way to know when a contianer is ready (I can need mount several of them).
Is not like there is no way to check the logs with regex, but I think would be great have a way to can now when the container is ready.
There is a important thing about this type of container, I checked docker-library/postgres#146, sadly does not has a cross-platform solution, pg_isready
helps in the postgres case, but in case of postgis not, because after postgres is mounted, then the extensions must be installed and then the server restarts, due to this pg_ready
ends in the installation of the extension because is a moment where postgres is working.
There can be different solutions, maybe a cross-platform way, is to have a file in the root of the container with the a general status of the container, where checking it we can now when the container is ready, maybe someone else have a robust solution to that.
Thx!