mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 01:23:32 -06:00
25 lines
651 B
YAML
25 lines
651 B
YAML
postgres:
|
|
image: postgres:${postgres_version}
|
|
environment:
|
|
POSTGRES_USER: grafana
|
|
POSTGRES_PASSWORD: password
|
|
POSTGRES_DB: grafana
|
|
ports:
|
|
- "5432:5432"
|
|
command: postgres -c log_connections=on -c log_disconnections=on -c log_destination=stderr
|
|
healthcheck:
|
|
test: [ "CMD", "pg_isready", "-q", "-d", "grafana", "-U", "grafana" ]
|
|
timeout: 45s
|
|
interval: 10s
|
|
retries: 10
|
|
|
|
fake-postgres-data:
|
|
image: grafana/fake-data-gen
|
|
environment:
|
|
FD_SERVER: postgres
|
|
FD_DATASOURCE: postgres
|
|
FD_PORT: 5432
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|