ClickHouse/docker/test/integration/runner/compose/docker_compose_postgres_cluster.yml

44 lines
1.7 KiB
YAML
Raw Normal View History

2021-03-31 21:46:07 +00:00
version: '2.3'
services:
2021-03-31 23:48:54 +00:00
postgres2:
2021-03-31 21:46:07 +00:00
image: postgres
command: ["postgres", "-c", "logging_collector=on", "-c", "log_directory=/postgres/logs", "-c", "log_filename=postgresql.log", "-c", "log_statement=all"]
2021-03-31 21:46:07 +00:00
restart: always
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
2021-03-31 21:46:07 +00:00
POSTGRES_PASSWORD: mysecretpassword
PGDATA: /postgres/data
expose:
- ${POSTGRES_PORT}
volumes:
- type: ${POSTGRES_LOGS_FS:-tmpfs}
source: ${POSTGRES2_DIR:-}
target: /postgres/
2021-03-31 23:48:54 +00:00
postgres3:
2021-03-31 21:46:07 +00:00
image: postgres
command: ["postgres", "-c", "logging_collector=on", "-c", "log_directory=/postgres/logs", "-c", "log_filename=postgresql.log", "-c", "log_statement=all"]
2021-03-31 21:46:07 +00:00
restart: always
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
2021-03-31 21:46:07 +00:00
POSTGRES_PASSWORD: mysecretpassword
PGDATA: /postgres/data
expose:
- ${POSTGRES_PORT}
volumes:
- type: ${POSTGRES_LOGS_FS:-tmpfs}
source: ${POSTGRES3_DIR:-}
target: /postgres/
2021-03-31 23:48:54 +00:00
postgres4:
2021-04-08 14:43:57 +00:00
image: postgres
command: ["postgres", "-c", "logging_collector=on", "-c", "log_directory=/postgres/logs", "-c", "log_filename=postgresql.log", "-c", "log_statement=all"]
restart: always
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
POSTGRES_PASSWORD: mysecretpassword
PGDATA: /postgres/data
expose:
- ${POSTGRES_PORT}
volumes:
- type: ${POSTGRES_LOGS_FS:-tmpfs}
source: ${POSTGRES4_DIR:-}
target: /postgres/