Docker Compose
postgresql
version: '3.8'
services:
postgres:
image: postgres:14.1-alpine
container_name: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD:
POSTGRES_HOST_AUTH_METHOD: trust
PGDATA: '/var/lib/postgresql/data'
ports:
- 5432:5432
command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr", "-c", "wal_level=logical", "-c", "max_wal_senders=100", "-c", "max_replication_slots=100"]
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres:
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论