Skip to content

Commit 7291b0c

Browse files
committed
fix(grafana): source database name from secret
1 parent 03e5271 commit 7291b0c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/development/stack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ services:
145145
- traefik.http.services.grafana.loadbalancer.server.port=3000
146146
image: grafana/grafana:11.5.2
147147
secrets:
148+
- postgres_db
148149
- postgres_role_grafana_password
149150
- postgres_role_grafana_username
150151
volumes:

src/production/configurations/grafana/provisioning/datasources/postgres.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: 1
33
datasources:
44
- access: proxy
55
jsonData:
6-
database: vibetype
6+
database: $__file{/run/secrets/postgres_db}
77
postgresVersion: 1500
88
sslmode: 'disable'
99
name: PostgreSQL

0 commit comments

Comments
 (0)