I am using postgresql with django in my project. i've got them in different containers and the problem is that i need to wait for postgres before running django. At this time i am doing it with sleep 5
in command.sh file for django container. I also found that netcat can do the trick but i would prefer way without additional packages. curl and wget can't do this because they do not support postgres protocol.
Is there a way to do it?
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- Django distinct is not working
- PostgreSQL: left outer join syntax
- Unspecified error (0x80004005) while running a Doc
Why not curl?
Something like this:
It works for me.