mirror of https://github.com/tiyn/wiki
parent
2e3468eb09
commit
ddb19c5062
@ -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 root password>
|
||||||
|
- MYSQL_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 password>
|
||||||
|
- MYSQL_DATABASE=nextcloud
|
||||||
|
- MYSQL_USER=nextcloud
|
||||||
|
- MYSQL_HOST=db
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db:
|
||||||
|
driver: local
|
||||||
|
nextcloud:
|
||||||
|
driver: local
|
||||||
|
|
||||||
|
```
|
@ -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://<nextcloud instance>/remote.php/dav/files/<user>/<path to folder or file>`.
|
Loading…
Reference in new issue