I have a perfectly working Nextcloud instance installed via docker-compose.
The docker-compose.yml file is the following:
version: '3' services: db: image: mariadb command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW restart: always volumes: - /my/db/location:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=my_password env_file: - db.env app: image: nextcloud:apache restart: always volumes: - /my/nextcloud/location:/var/www/html environment: - MYSQL_HOST=db - VIRTUAL_HOST=my_virtual_host - LETSENCRYPT_HOST=my_host - LETSENCRYPT_EMAIL=my_email env_file: - db.env depends_on: - db networks: - proxy-tier - default volumes: db: nextcloud: networks: proxy-tier: external: true
From the overview section in the Admin account, the current version appears to be 16.0.3.
The overview section also prompts me to update to version 16.0.8.
However, I would like to upgrade to Nextcloud 18, but the documentation explicitly says that upgrades between two or more major versions are not supported.
Given that I’m really ignorant about docker, the problem is that I cannot find anywhere how should I upgrade to version 17 first, and then to 18.
First of all, the docker-compose.yml doesn’t seem to contain any information about the current version, and I cannot find any information about specifying a particular version for docker-compose to pull in general.
I suppose that should exist a way to specify a precise version in the “image:” line, but I can’t figure out how.
What I have to do in order to upgrade to Nextcloud 17 avoiding the last version until I have completed the first upgrade?