update for image url

This commit is contained in:
Mohamed Nouffer
2022-11-05 14:31:55 +05:30
parent e43df5cf29
commit 1f49a1b038
8 changed files with 257 additions and 27 deletions

14
wait.py Normal file
View File

@ -0,0 +1,14 @@
import socket
import time
import os
port = 5432
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
while True:
try:
s.connect(('postgres-db', port))
s.close()
break
except socket.error as ex:
time.sleep(0.1)