Skip to content

Commit

Permalink
Added option to select sslmode when connecting to DB in Grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeHanYeong committed Aug 12, 2022
1 parent 44a6fd8 commit 24e324f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion grafana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ ENV GF_ANALYTICS_REPORTING_ENABLED=FALSE \
GF_SECURITY_DISABLE_GRAVATAR=true \
GF_USERS_ALLOW_SIGN_UP=false \
GF_ANALYTICS_REPORTING_ENABLED=FALSE \
DATABASE_PORT=5432
DATABASE_PORT=5432 \
DATABASE_SSLMODE=disable

USER root

Expand Down
2 changes: 1 addition & 1 deletion grafana/datasource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ datasources:
password: $DATABASE_PASS
jsonData:
postgresVersion: 1000
sslmode: disable
sslmode: $DATABASE_SSLMODE
version: 1
editable: true
1 change: 1 addition & 0 deletions website/docs/guides/apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ services:
- DATABASE_PASS=${TM_DB_PASS}
- DATABASE_NAME=${TM_DB_NAME}
- DATABASE_HOST=database
- DATABASE_SSLMODE=disable
- GRAFANA_PASSWD=${GRAFANA_PW}
- GF_SECURITY_ADMIN_USER=${GRAFANA_USER}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PW}
Expand Down
1 change: 1 addition & 0 deletions website/docs/guides/traefik.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ services:
- DATABASE_PASS=${TM_DB_PASS}
- DATABASE_NAME=${TM_DB_NAME}
- DATABASE_HOST=database
- DATABASE_SSLMODE=disable
- GRAFANA_PASSWD=${GRAFANA_PW}
- GF_SECURITY_ADMIN_USER=${GRAFANA_USER}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PW}
Expand Down

0 comments on commit 24e324f

Please sign in to comment.