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

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

Published on Author admin

Stop and remove current Nextcloud docker services: docker stop nextcloud-app docker stop nextcloud-www docker stop nextcloud-postgres docker stop nextcloud-redis docker rm nextcloud-app docker rm nextcloud-www docker rm nextcloud-postgres docker rm nextcloud-redis Run only old PostgreSQL database container using "docker compose --build" docker compose -f /root/docker-compose-nextcloud.yml up --build nextcloud-postgres -d Dump old PostgreSQL database content to… Continue reading Nextcloud - Upgrading PostgreSQL database running as Docker container from 16 to 17

Nextcloud - Upgrading PostgreSQL database running as Docker container between major versions

Published on Author admin

How to upgrade PostgreSQL database running as Docker container between major versions. Procedure useful for migrating Nextcloud PostgreSQL 13 container database to PostgreSQL 15 database. Naming convention: nextcloud-postgres13 - container with PostgreSQL 13 database nextcloud-postgres15 - container with PostgreSQL 15 database Before performing migration start new container with PostgreSQL 15 database. Following docker-compose YAML file… Continue reading Nextcloud - Upgrading PostgreSQL database running as Docker container between major versions

Docker 20.10 fails to start on CentOS 8 and Fedora 33

Published on Author admin

After upgrading Docker to version 20.10 on CentOS 8 and Fedora 33 we can see that it fails to start docker.service. In docker.service logs and firewalld.service logs we can see following message: ERROR: ZONE_CONFLICT: 'docker0' already bound to a zone Solution for this issue: sudo firewall-cmd --zone=trusted --remove-interface=docker0 sudo firewall-cmd --zone=trusted --remove-interface=docker0 --permanent

Jenkins Pipeline for building, testing and running Docker containers

Published on Author admin

Example Jenkins Pipeline for building, testing and running Docker containers. Ingredients: • Jenkinsfile - Pipeline specification • GitHub - source code repository (for app and Jenkinsfile) • DockerHub - container registry Required Jenkins plugins: • GitHub plugin • Docker Commons Plugin • Build With Parameters • Pipeline plugin Pipeline architecture schema: