metabase add /etc/default/metabase
This commit is contained in:
parent
a036a3516f
commit
9e7a3a12d1
5 changed files with 25 additions and 3 deletions
1
ressources/metabase/rootfs/DEBIAN/conffiles
Normal file
1
ressources/metabase/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/default/metabase
|
20
ressources/metabase/rootfs/etc/default/metabase
Normal file
20
ressources/metabase/rootfs/etc/default/metabase
Normal file
|
@ -0,0 +1,20 @@
|
|||
#https://www.metabase.com/docs/latest/operations-guide/configuring-application-database.html
|
||||
|
||||
#MB_DB_TYPE=mysql
|
||||
#MB_DB_PORT=3306
|
||||
|
||||
#MB_DB_TYPE=postgres
|
||||
#MB_DB_PORT=5432
|
||||
|
||||
#MB_DB_DBNAME=metabase
|
||||
#MB_DB_USER=<username>
|
||||
#MB_DB_PASS=<password>
|
||||
#MB_DB_HOST=localhost
|
||||
|
||||
#MB_DB_CONNECTION_URI="jdbc:postgresql://localhost:5432/metabase?user=<username>&password=<password>"
|
||||
#MB_DB_CONNECTION_URI="jdbc:mysql://localhost:3306/metabase?user=<username>&password=<password>"
|
||||
|
||||
#https://www.metabase.com/docs/latest/operations-guide/encrypting-database-details-at-rest.html
|
||||
|
||||
#generate with 'openssl rand -base64 32'
|
||||
#MB_ENCRYPTION_SECRET_KEY=
|
|
@ -4,8 +4,9 @@ Description=metabase
|
|||
[Service]
|
||||
Type=exec
|
||||
User=metabase
|
||||
WorkingDirectory=/var/lib/metabase
|
||||
EnvironmentFile=-/etc/default/metabase
|
||||
ExecStart=/usr/bin/java -jar /usr/share/metabase/metabase.jar
|
||||
WorkingDirectory=/var/lib/metabase
|
||||
Restart=on-failure
|
||||
RestartSec=30s
|
||||
ReadWritePaths=/var/lib/metabase
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue