diff --git a/wiki/docker-images/nextcloud.md b/wiki/docker-images/nextcloud.md new file mode 100644 index 0000000..a89af5d --- /dev/null +++ b/wiki/docker-images/nextcloud.md @@ -0,0 +1,78 @@ +# NextCloud + +The official container and documentation was made by [NextCloud](https://hub.docker.com/_/nextcloud). +This docker-rebuild is made up by a `docker-compose.yml` file. +The services in this files are explained seperately. +The main Docker container needs a database in form of a [MariaDB](./mariadb.md) +Docker container. + +## Volumes + +Set the following volumes in the `volumes:` section of the docker-compose file. + +| Volume-Name | Container mount | Description | +| ----------- | --------------- | ---------------------------------------- | +| `nextcloud` | `/var/www/html` | storage for nextcloud plugins and config | + +## Ports + +Set the following ports in the `ports:` section. + +| Container Port | Recommended outside port | Protocol | Description | +| -------------- | ------------------------ | -------- | ----------- | +| `80` | `80` | TCP | WebUI | + +## Rebuild + +```shell +#!/bin/sh +docker-compose down +docker pull nextcloud:latest +docker pull mariadb:latest +docker-compose up -d +``` + +## Docker-Compose.yml + +```yml +version: '2' + +volumes: + nextcloud: + db: + +services: + db: + image: mariadb + restart: always + command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW + volumes: + - db:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD= + - MYSQL_PASSWORD= + - MYSQL_DATABASE=nextcloud + - MYSQL_USER=nextcloud + + app: + image: nextcloud + restart: always + ports: + - 8080:80 + links: + - db + volumes: + - nextcloud:/var/www/html + environment: + - MYSQL_PASSWORD= + - MYSQL_DATABASE=nextcloud + - MYSQL_USER=nextcloud + - MYSQL_HOST=db + +volumes: + db: + driver: local + nextcloud: + driver: local + +``` diff --git a/wiki/nextcloud.md b/wiki/nextcloud.md new file mode 100644 index 0000000..b59c173 --- /dev/null +++ b/wiki/nextcloud.md @@ -0,0 +1,12 @@ +# NextCloud + +NextCloud is a free and open source client-server cloud-service. + +## Server + +A server can be setup via docker with the [nextcloud image](./docker-images/nextcloud.md). + +## WebDAV + +You can access ownCloud via WebDAV with the link +`https:///remote.php/dav/files//`.