metabase add /etc/default/metabase

This commit is contained in:
thomas 2022-03-24 02:48:03 +01:00
parent a036a3516f
commit 9e7a3a12d1
5 changed files with 25 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
cache/
dist/
postrun

View file

@ -1,14 +1,13 @@
#!/bin/bash
VERSION=0.42.3
RELEASE=2
[ -e ./lib/function.sh ] && source ./lib/function.sh
APP=metabase
DEPOT=https://github.com/metabase/metabase.git
GIT_VERSION=v$VERSION
DEB_VERSION=${VERSION}-${RELEASE}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=10

View file

@ -0,0 +1 @@
/etc/default/metabase

View 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=

View file

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