Fixed the variable for the database host

This commit is contained in:
Bento Silveira 2023-07-23 12:47:13 -03:00 committed by Nerdeiro da Silva
parent c8ef39e3cb
commit 5cdf13e1bc
No known key found for this signature in database
GPG Key ID: E50EFBA12C1ED3CD
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ FEED_RETENTION=30
###########################
POSTGRES_DB=piped
POSTGRES_HOST=postgres
POSTGRES_USER=piped
POSTGRES_PASSWORD=changeme

View File

@ -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