ClickHouse/tests/integration/compose/docker_compose_postgres.yml

25 lines
998 B
YAML
Raw Normal View History

services:
postgres1:
image: postgres
2024-10-14 17:01:26 +00:00
command: ["postgres", "-c", "wal_level=logical", "-c", "max_replication_slots=4", "-c", "logging_collector=on", "-c", "log_directory=/postgres/logs", "-c", "log_statement=all", "-c", "max_connections=200", "-c", "statement_timeout=180000"] # statement_timeout: avoid test timeout because of postgres getting unavailable
restart: always
expose:
- ${POSTGRES_PORT:-5432}
2021-02-17 15:40:01 +00:00
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
2020-06-22 13:29:35 +00:00
networks:
default:
aliases:
- postgre-sql.local
2021-02-17 15:40:01 +00:00
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
POSTGRES_PASSWORD: mysecretpassword
PGDATA: /postgres/data
volumes:
- type: ${POSTGRES_LOGS_FS:-tmpfs}
source: ${POSTGRES_DIR:-}
2021-07-12 08:32:20 +00:00
target: /postgres/