mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-30 05:30:51 +00:00
20 lines
537 B
YAML
20 lines
537 B
YAML
version: '2.3'
|
|
services:
|
|
postgres1:
|
|
image: postgres
|
|
restart: always
|
|
environment:
|
|
POSTGRES_PASSWORD: mysecretpassword
|
|
ports:
|
|
- ${POSTGRES_EXTERNAL_PORT}:${POSTGRES_INTERNAL_PORT}
|
|
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" |