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

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:

Deploy Nextcloud containerized service using Docker and docker-compose

Published on Author admin

Template for deploying Nextcloud containerized service using Docker and docker-compose, you can use in on both x86_64 and ARM (32/64bit) architecture: https://github.com/openterprise/docker/blob/master/docker-compose-nextcloud.yml This template deploys Nextcloud with following setup: • application: Nextcloud • application server: Apache + PHP • database: MariaDB / PostgreSQL • cache: Redis • scheduler: crontab Requirements: • Docker • docker-compose