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:

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