Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 2.95 KB

File metadata and controls

47 lines (32 loc) · 2.95 KB

NextCloud on Docker with LetsEncrypt SSL, PostgreSQL backend, Collabora online office, Cron support

In my perception the official examples did not provide a working home production ready Docker example to host a private NextCloud on your own server.

Features

How to get it running

To get this running, have an installed docker-compose available and:

  1. register two dynamic domains i.e. at https://freedns.org

    • one for your nextcloud: mynextcloud.mooo.com

    • one only to host Collabora: myoffice.mooo.com

  2. publicly expose TCP port 80 & 443 of your host in router

  3. Adjust all [##VALUES##] in the files: docker-compose.yml and db.env. Highly recommended: Uncomment the LETSENCRYPT_TEST=true setting to test you deployment.

  4. Optional: I added/adjusted my /etc/docker/daemon.js to define a custom data storage location: { "data-root": "/srv/dockerdata" } and restarted the docker daemon

  5. Run sudo docker-compose up --build

  6. Access your installation at https://[##mynextcloud.mooo.com##].

  7. Activate Collabora plugin in NextCloud und define https://[##myoffice.mooo.com##] as URL. Ignore the Saved with error: Collabora Online should use the same protocol as the server installation message.

  8. For now and until the merge request #819 is merged into upstream you need to run sudo docker-compose exec --user www-data app php occ config:system:set overwriteprotocol --value="https" once or you will have problems to login i.e. via the Android app as described in my ticket for the Android app

How to upgrade & rebuild your installation

Simply do the following. Due to the persistent Docker volumes this will retain all your data and even your running login sessions.

   $ sudo docker-compose down
   $ sudo docker-compose build --pull
   $ sudo docker-compose up -d

I’m not sure, but after major release upgrade a subsequent sudo docker-compose exec --user www-data app php occ db:add-missing-indices might be necessary or not. At least it won’t hurt. I also provided a upgrade-nextcloud shell script I’m using for convenience.

Versions

2023-03-24

Provide upgrade-nextcloud as template for a convenient upgrade script.

2020-02-07

Fix access issues using the Android app due to missing overwriteprotocol setting to https

2019-12-09

Got Collabora CODE Integration working

2019-11-01

Initial running version