mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-08-14 23:56:53 +00:00
Added the script that set the database before starting the backend
This commit is contained in:
parent
2aff2aa49b
commit
c8ef39e3cb
1 changed files with 9 additions and 0 deletions
9
entrypoint.d/backend-startup.sh
Executable file
9
entrypoint.d/backend-startup.sh
Executable file
|
@ -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…
Add table
Add a link
Reference in a new issue