New postgres solution

This commit is contained in:
awieczarek 2024-10-20 14:00:04 +02:00
parent 3a08b0e088
commit 7196fdd74c

View File

@ -8,10 +8,10 @@ RUN eval $(echo $DATABASE_URL | sed -e 's/^postgres:\/\///' -e 's/@/ /' -e 's/:/
RUN bash -c ' \
echo "[database]" > app.ini; \
echo "DB_TYPE = postgres" >> app.ini; \
echo "HOST = $host:$port" >> app.ini; \
echo "NAME = $dbname" >> app.ini; \
echo "USER = $username" >> app.ini; \
echo "PASSWD = $password" >> app.ini; \
echo "HOST = $DATABASE_HOST" >> app.ini; \
echo "NAME = $DATABASE_DB" >> app.ini; \
echo "USER = $DATABASE_USER" >> app.ini; \
echo "PASSWD = $DATABASE_PASSWORD" >> app.ini; \
echo "SSL_MODE = require" >> app.ini \
'