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:

阿南
20 声望7 粉丝

« 上一篇
Google Guava
下一篇 »
Linux - Vim