forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
687 B
23 lines
687 B
postgres:
|
|
image: postgres:${postgres_version}
|
|
environment:
|
|
POSTGRES_USER: grafana
|
|
POSTGRES_PASSWORD: password
|
|
POSTGRES_DATABASE: grafana
|
|
ports:
|
|
- "5432:5432"
|
|
command: postgres -c log_connections=on -c logging_collector=on -c log_destination=stderr -c log_directory=/var/log/postgresql
|
|
healthcheck:
|
|
test: [ "CMD", "pg_isready", "-q", "-d", "$$POSTGRES_DATABASE", "-U", "$$POSTGRES_USER" ]
|
|
timeout: 45s
|
|
interval: 10s
|
|
retries: 10
|
|
|
|
fake-postgres-data:
|
|
image: grafana/fake-data-gen
|
|
environment:
|
|
FD_DATASOURCE: postgres
|
|
FD_PORT: 5432
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|