Nextcloud - Upgrading PostgreSQL database running as Docker container from 17 to 18

Published on Author admin

Append YAML file with docker-compose definition for new PostgreSQL 18 database:   nextcloud-postgres18:     container_name: nextcloud-postgres18     hostname: nextcloud-postgres18     image: postgres:18-alpine     restart: always     volumes:       - /data/nextcloud-postgresql18-data64:/var/lib/postgresql     environment:       - POSTGRES_PASSWORD=       - POSTGRES_DB=nextcloud       - POSTGRES_USER=nextcloud… Continue reading Nextcloud - Upgrading PostgreSQL database running as Docker container from 17 to 18

Tune PostgreSQL and PHP settings for Nextcloud inside Docker container on RPi 5

Published on Author admin

Tune PostgreSQL and PHP settings for Nextcloud inside Docker container on RPi 5 PostgreSQL settings change variables inside PG_DATA/postgresql.conf config file shared_buffers = 256MB work_mem = 8MB restart PostgreSQL database: docker restart nextcloud-postgres verify: docker exec -it nextcloud-postgres psql -U nextcloud -d nextcloud -c "SHOW shared_buffers" docker exec -it nextcloud-postgres psql -U nextcloud -d nextcloud… Continue reading Tune PostgreSQL and PHP settings for Nextcloud inside Docker container on RPi 5

Generic HA Architecture - App servers + PostgreSQL Patroni cluster

Published on Author admin

Generic HA Architecture - App servers + PostgreSQL Patroni cluster Keepalived + HAproxy used as Load Balancers   Key components: HAproxy - TCP/HTTP Load Balancer Keepalived - Virtual IP for HAproxy Patroni - HA template for PostgreSQL database (cluster with streaming replication) etcd - Distributed Configuration Store for Patroni   Architecture diagram: