Skip to content

Commit

Permalink
make database configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Oct 27, 2021
1 parent 3bd6e6c commit 913b130
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions grafana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ ENV GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=panodata-map-panel
ENV GF_SERVER_ENABLE_GZIP=true
ENV DB_USER=admin
ENV DB_PASSWORD=secret
ENV DB_HOSTNAME=postgresdbbackend
ENV DB_PORT=5432
ENV DB_NAME=vwsfriend
ENV GF_EXPLORE_ENABLED=false
ENV GF_ALERTING_ENABLED=false
ENV GF_METRICS_ENABLED=false
Expand Down
4 changes: 2 additions & 2 deletions grafana/config/grafana/provisioning/datasources/vwsfriend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ datasources:
orgId: 1
type: postgres
access: proxy
database: vwsfriend
database: $DB_NAME
user: $DB_USER
secureJsonData:
password: $DB_PASSWORD
jsonData:
sslmode: "disable"
postgresVersion: 1200
url: postgresdbbackend:5432
url: $DB_HOSTNAME:$DB_PORT
basicAuth: false
withCredentials: false
isDefault: true
Expand Down

0 comments on commit 913b130

Please sign in to comment.