Skip to content

Commit cc650fa

Browse files
use env vars to define url in postgres datasource
1 parent 953c413 commit cc650fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grafana/provisioning/datasources/datasource.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ datasources:
1818
uid: postgres
1919
access: proxy
2020
orgId: 1
21-
url: postgres:5432
21+
url: "${POSTGRES_HOST}:${POSTGRES_PORT}"
2222
database: ${POSTGRES_DB}
2323
user: ${POSTGRES_USER}
2424
secureJsonData:

0 commit comments

Comments
 (0)