diff --git a/pgadmin-config-creator/Dockerfile b/pgadmin-config-creator/Dockerfile index 0293dce..22739a4 100644 --- a/pgadmin-config-creator/Dockerfile +++ b/pgadmin-config-creator/Dockerfile @@ -1,5 +1,6 @@ FROM python:3.8-alpine -RUN mkdir -p /{app,config} +RUN mkdir /app +RUN mkdir /config COPY . /app WORKDIR /app CMD ["python", "app.py"] diff --git a/pgadmin-config-creator/app.py b/pgadmin-config-creator/app.py index 32b7d0f..458d06b 100644 --- a/pgadmin-config-creator/app.py +++ b/pgadmin-config-creator/app.py @@ -5,7 +5,7 @@ import time with open('/config/servers.json', 'w') as f: print("created " + f.name) template_string = ('{"Servers": {"1": {"Name": "DavinciResolve", ' - '"Group": "Servers", "Port": 5432, "Username": '' + '"Group": "Servers", "Port": 5432, "Username": ' '"postgres", "Host": "postgres", "SSLMode": "prefer", "MaintenanceDB": "postgres"}}}' ) data = json.loads(template_string)