replica
postgres primary/replica
postgres primary/replica
2024.09.08docker를 이용하여 postgresql의 primary replica 설정할 수 있다. docker-compose.yml 설정services: postgres-primary: image: postgres:16.1 container_name: postgres-primary restart: always ports: - 15432:5432 environment: - POSTGRES_USER=아이디 입력 - POSTGRES_PASSWORD=비밀번호 입력 - TZ=Asia/Seoul volumes: - ./data/primary:/var/lib/postgresql/data postgres-replica: image: pos..