Advice on server migration

Using containers requires manual updates as well. Even if you use the latest tag (what I would never recommend for production systems independent of ownCloud), Docker will not automatically pull the latest tag again if it exists locally already. You would have to manually execute docker pull or docker compose pull from time to time to get the latest image updated or use pull_policy in your compose file.

The official ownCloud documentation is using version tags. I would recommend to always use version tags for all images and do the update manually (or by other tools). The official documentation liked above also provides a basic compose file to get started.

Correct, this one is not maintained anymore and as stated in the readme owncloud/server should be used instead.

As we don’t remove old container tags, the 10.8 image still exists but is not supported anymore and shouldn’t be used for new setups.

That should work, but increases the complexity and I would recommend:

a) Do the upgrade to 10.12 first and migrate to a container setup afterward
b) Do the container migration first using the owncloud/server:10.8 image (see above) and do the upgrade afterward

First, ensure you have a working backup for your data and database.

This step will not work for container setups by default. You would need to switch to environment variables. There is a way to use a custom config.php file to the container, but that’s not that straight forward. Please read You are accessing the server from an untrusted domain - #10 by rkaussow and the rest of this thread carefully.

Please don’t use this compose file. Most of the used images are custom images from random people from the internet, and you should not blindly trust them. Whenever possible, use the official images instead.

We don’t have a good example on how to use Let’s Encrypt in a container stack. I would recommend looking into Traefik or Caddy as both have Lets Encrypt support already included.

You don’t necessarily need Redis, but the resource requirements are quite low, and I would recommend keeping it.

3 Likes