Added the script that set the database before starting the backend
This commit is contained in:
parent
2aff2aa49b
commit
c8ef39e3cb
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "hibernate.connection.url: jdbc:postgresql://${POSTGRES_DB}: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
|
||||
echo "hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect" >> /app/config.properties
|
||||
|
||||
exec java -server -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -Xshare:on -jar /app/piped.jar
|
Loading…
Reference in New Issue