2021-03-31 21:46:07 +00:00
|
|
|
services:
|
2021-03-31 23:48:54 +00:00
|
|
|
postgres2:
|
2021-03-31 21:46:07 +00:00
|
|
|
image: postgres
|
2021-04-08 09:30:24 +00:00
|
|
|
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:
|
2021-04-08 09:30:24 +00:00
|
|
|
POSTGRES_HOST_AUTH_METHOD: "trust"
|
2021-03-31 21:46:07 +00:00
|
|
|
POSTGRES_PASSWORD: mysecretpassword
|
2021-04-08 09:30:24 +00:00
|
|
|
PGDATA: /postgres/data
|
|
|
|
expose:
|
2023-01-02 16:45:50 +00:00
|
|
|
- ${POSTGRES_PORT:-5432}
|
2021-04-08 09:30:24 +00:00
|
|
|
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
|
2021-04-08 09:30:24 +00:00
|
|
|
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:
|
2021-04-08 09:30:24 +00:00
|
|
|
POSTGRES_HOST_AUTH_METHOD: "trust"
|
2021-03-31 21:46:07 +00:00
|
|
|
POSTGRES_PASSWORD: mysecretpassword
|
2021-04-08 09:30:24 +00:00
|
|
|
PGDATA: /postgres/data
|
|
|
|
expose:
|
2023-01-02 16:45:50 +00:00
|
|
|
- ${POSTGRES_PORT:-5432}
|
2021-04-08 09:30:24 +00:00
|
|
|
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:
|
2023-01-02 16:45:50 +00:00
|
|
|
- ${POSTGRES_PORT:-5432}
|
2021-04-08 14:43:57 +00:00
|
|
|
volumes:
|
|
|
|
- type: ${POSTGRES_LOGS_FS:-tmpfs}
|
|
|
|
source: ${POSTGRES4_DIR:-}
|
2024-10-01 13:46:47 +00:00
|
|
|
target: /postgres/
|