mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix postgres devenv (#49487)
This commit is contained in:
parent
4b994ca669
commit
849d4a3c56
@ -3,12 +3,12 @@
|
|||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: grafana
|
POSTGRES_USER: grafana
|
||||||
POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: password
|
||||||
POSTGRES_DATABASE: grafana
|
POSTGRES_DB: grafana
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
command: postgres -c log_connections=on -c logging_collector=on -c log_destination=stderr -c log_directory=/var/log/postgresql
|
command: postgres -c log_connections=on -c logging_collector=on -c log_destination=stderr -c log_directory=/var/log/postgresql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "pg_isready", "-q", "-d", "$$POSTGRES_DATABASE", "-U", "$$POSTGRES_USER" ]
|
test: [ "CMD", "pg_isready", "-q", "-d", "grafana", "-U", "grafana" ]
|
||||||
timeout: 45s
|
timeout: 45s
|
||||||
interval: 10s
|
interval: 10s
|
||||||
retries: 10
|
retries: 10
|
||||||
@ -16,6 +16,7 @@
|
|||||||
fake-postgres-data:
|
fake-postgres-data:
|
||||||
image: grafana/fake-data-gen
|
image: grafana/fake-data-gen
|
||||||
environment:
|
environment:
|
||||||
|
FD_SERVER: postgres
|
||||||
FD_DATASOURCE: postgres
|
FD_DATASOURCE: postgres
|
||||||
FD_PORT: 5432
|
FD_PORT: 5432
|
||||||
depends_on:
|
depends_on:
|
||||||
|
Loading…
Reference in New Issue
Block a user