mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
50 lines
1.8 KiB
YAML
50 lines
1.8 KiB
YAML
services:
|
|
postgres2:
|
|
image: postgres
|
|
stop_grace_period: 5s
|
|
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: ClickHouse_PostgreSQL_P@ssw0rd
|
|
PGDATA: /postgres/data
|
|
expose:
|
|
- ${POSTGRES_PORT:-5432}
|
|
volumes:
|
|
- type: ${POSTGRES_LOGS_FS:-tmpfs}
|
|
source: ${POSTGRES2_DIR:-}
|
|
target: /postgres/
|
|
cpus: 3
|
|
postgres3:
|
|
image: postgres
|
|
stop_grace_period: 5s
|
|
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: ClickHouse_PostgreSQL_P@ssw0rd
|
|
PGDATA: /postgres/data
|
|
expose:
|
|
- ${POSTGRES_PORT:-5432}
|
|
volumes:
|
|
- type: ${POSTGRES_LOGS_FS:-tmpfs}
|
|
source: ${POSTGRES3_DIR:-}
|
|
target: /postgres/
|
|
cpus: 3
|
|
postgres4:
|
|
image: postgres
|
|
stop_grace_period: 5s
|
|
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: ClickHouse_PostgreSQL_P@ssw0rd
|
|
PGDATA: /postgres/data
|
|
expose:
|
|
- ${POSTGRES_PORT:-5432}
|
|
volumes:
|
|
- type: ${POSTGRES_LOGS_FS:-tmpfs}
|
|
source: ${POSTGRES4_DIR:-}
|
|
target: /postgres/
|
|
cpus: 3
|