From 5cdf13e1bce84ae17197440055817519678e90e9 Mon Sep 17 00:00:00 2001 From: Bento Silveira Date: Sun, 23 Jul 2023 12:47:13 -0300 Subject: [PATCH] Fixed the variable for the database host --- configuration.env | 1 + entrypoint.d/backend-startup.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configuration.env b/configuration.env index 3edbc7a..01a2919 100644 --- a/configuration.env +++ b/configuration.env @@ -43,6 +43,7 @@ FEED_RETENTION=30 ########################### POSTGRES_DB=piped +POSTGRES_HOST=postgres POSTGRES_USER=piped POSTGRES_PASSWORD=changeme diff --git a/entrypoint.d/backend-startup.sh b/entrypoint.d/backend-startup.sh index 267ef06..eb3a850 100755 --- a/entrypoint.d/backend-startup.sh +++ b/entrypoint.d/backend-startup.sh @@ -1,6 +1,6 @@ #!/bin/sh -echo "hibernate.connection.url: jdbc:postgresql://${POSTGRES_DB}:5432/piped" > /app/config.properties +echo "hibernate.connection.url: jdbc:postgresql://${POSTGRES_HOST}:5432/piped" > /app/config.properties echo "hibernate.connection.username: ${POSTGRES_USER}" >> /app/config.properties echo "hibernate.connection.password: ${POSTGRES_PASSWORD}" >> /app/config.properties echo "hibernate.connection.driver_class: org.postgresql.Driver" >> /app/config.properties