Update Dockerfile, settings.json, utils.py, nginx-example.conf, docker-compose.yml, and app.py

This commit is contained in:
Janis
2023-12-19 19:20:10 +01:00
parent 5775cb087a
commit 4844c26002
13 changed files with 376 additions and 227 deletions

View File

@@ -18,11 +18,3 @@ def docker_container_mapping():
for port in port_map:
logging.info(f'{port} -> {port_map[port]}')
return port_map
def get_ip_by_dns_name(dns_name):
try:
return socket.gethostbyname(dns_name, resolver='127.0.0.1')
except socket.gaierror:
logging.error(f'Could not resolve dns name {dns_name}')
return None