mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
25 lines
998 B
YAML
25 lines
998 B
YAML
services:
|
|
postgres1:
|
|
image: postgres
|
|
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}
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
default:
|
|
aliases:
|
|
- postgre-sql.local
|
|
environment:
|
|
POSTGRES_HOST_AUTH_METHOD: "trust"
|
|
POSTGRES_PASSWORD: mysecretpassword
|
|
PGDATA: /postgres/data
|
|
volumes:
|
|
- type: ${POSTGRES_LOGS_FS:-tmpfs}
|
|
source: ${POSTGRES_DIR:-}
|
|
target: /postgres/
|