I am currently running oC 10.8.0 on Ubuntu 20.04. I am running it stright on linux, no docker/VM. I am planimg going to Ubuntu 22.04 with oC running in docker.
I think this time it is best to run it in docker as I now have some experience of it. Does this seem like a good idea. The think I found not ideal about the way I am runing it is that it seemed I needed to do manual upgrades, rather than doing it through apt. This may of changed but it feels like docker gets around this issue? Its also generaly good proactice.
The official docker docs seem to be a bit out of date - Docker. The seem fairly short, maybe lacking detail. Also it does not have details for apachie/nginx configuration or reddis and I want to also use Lets Encript certs. Is there a better guide I should use?
The docker compose file shown is
# ownCloud with MariaDB/MySQL
# Access via "http://localhost:8080" (or "http://$(docker-machine ip):8080" if using docker-machine)
# During initial ownCloud setup, select "Storage & database" --> "Configure the database" --> "MySQL/MariaDB"
# Database user: root
# Database password: example
# Database name: pick any name
# Database host: replace "localhost" with "mysql"
Ive always been a bit unclear as to if its a good idea to specify version numbers for the images. The oficial docs do not. I am a bit unclear as exacly what hapens when there is a bnew version of an image. Do all the needed updates get dome automaticaly (I guess when the container is restarted). Or is it best to specify versions so the updates can be better managed.
The fina lquestion is how to move everything. I dave the owncloud/data in its own partision which I have rsynced onto the new server. So to migrate I am planinig on
Setup oC 10.8 using docker on new server. need owncloud, MariaDB (and Lets Encript, reddis)
Shutdown existing server
Do a SQL backup
run rsync one last time to make sure data firectory is up to date
Import SQL backup into new server
Config oC config.php
Have I missed anything?
Its only being used by around 10 people so is reddis nessesery, think I may of set it up for a reason years ago but cant remember why?
Then when this is all working I can work on the oC 10.8 to 10.12.1 or 10.12.2 (cant easily find a good release scedule with dates but seem 10.12.2 is fairly new so maybe I should go for 10.12.1). Something like the Ububtu one (Releases - Ubuntu Wiki) would be splendid.
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.
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.