Skip to content
Permalink
Browse files

docs(*): fix typos and add notes on post-upgrade tasks

  • Loading branch information
bentolor committed Dec 9, 2019
1 parent 31aa84e commit 6ab77699dc933886a99d6ba8ba12c2e0d4dd1009
Showing with 18 additions and 12 deletions.
  1. +18 −12 README.adoc
@@ -1,37 +1,43 @@
= NextCloud on Docker with LetsEcnrypt SSL, PostgreSQL backend, Collabora online myoffice, Cron-Support
= 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.


After in my perception the official examples did not provide a working Docker example to host a NextCloud in production environment, this is my try.

## Features

* Based on link:https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/with-nginx-proxy/postgres/apache/docker-compose.yml[NextCloud PostgreSQL Apache example]
* PostgreSQL backend and nginx Frontend: Based on link:https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/with-nginx-proxy/postgres/apache/docker-compose.yml[NextCloud PostgreSQL Apache example]
* link:https://github.com/nextcloud/docker/blob/master/.examples/dockerfiles/cron/apache/supervisord.conf[Cron-based background Tasks using supervisord]
* Letsencrypt support
* [Collabora Online myoffice (CODE) integration](https://github.com/nextcloud/docker/pull/630)
* Letsencrypt SSL https-support
* Working https://github.com/nextcloud/docker/pull/630[Collabora Online Office (CODE) integration]
## How to get it running

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

1. register get two dynamic domains i.e. at https://freedns.org
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. publicy expose TCP port 80 & 443 of your host in router
2. publicly expose TCP port 80 & 443 of your host in router
3. Adjust all `pass:[[##VALUES##]]` in the files: `docker-compose.yml` and `db.env`
4. Run `sudo docker-compose up --build`
5. Activate Collabora pluing in nextcloud & define pass:[https://[##myoffice.mooo.com##]] as URL
4. Run `sudo docker-compose up --build`. I added/adjusted my `/etc/docker/daemon.js` to define a custom data storage location: `{ "data-root": "/srv/dockerdata" }`
5. Activate Collabora pluing in Nextcloud und define pass:[https://[##myoffice.mooo.com##]] as URL. Ignore the _Saved with error: Collabora Online should use the same protocol as the server installation_ message.
## How to upgrade & rebuild your installation
Simply do the following. Due to the Docker volumes this will retain all your data and even your running login sessions.
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.

## Versions
2019-11-01:: Initial running version
2019-12-09:: Got Collabora CODE Integration working

2019-12-09:: Got Collabora CODE Integration working

0 comments on commit 6ab7769

Please sign in to comment.
You can’t perform that action at this time.