mirror of
https://github.com/tiyn/wiki.git
synced 2026-02-22 10:24:47 +01:00
markdown syntax: formatted all files with prettier
This commit is contained in:
@@ -14,10 +14,10 @@ The services in this files are explained seperately.
|
||||
|
||||
Set the following volumes in the `volumes:` section of the docker-compose file.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | -------------------- | ---------------------------- |
|
||||
| owncloud | /var/www/html | storage for owncloud plugins |
|
||||
| config | /var/www/html/config | storage for owncloud config |
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | ---------------------- | ---------------------------- |
|
||||
| `owncloud` | `/var/www/html` | storage for owncloud plugins |
|
||||
| `config` | `/var/www/html/config` | storage for owncloud config |
|
||||
|
||||
##### Ports
|
||||
|
||||
@@ -25,29 +25,30 @@ Set the following ports in the `ports:` section.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | -------- | ----------- |
|
||||
| 80 | 80 | TCP | WebUI |
|
||||
| `80` | `80` | TCP | WebUI |
|
||||
|
||||
#### Maria DB
|
||||
|
||||
##### Environment-variables
|
||||
|
||||
Set the following environment-variables in the `environment:` section of the docker-compose file.
|
||||
Set the following environment-variables in the `environment:` section of the
|
||||
docker-compose file.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| ------------------- | ---------------------------- | ------- |
|
||||
| MYSQL\_ROOT\_PASSWORD | set the mysql admin password | |
|
||||
| Name | Usage | Default |
|
||||
| --------------------- | ---------------------------- | ------- |
|
||||
| `MYSQL_ROOT_PASSWORD` | set the mysql admin password | |
|
||||
|
||||
##### Volumes
|
||||
|
||||
Set the following volumes in the `volumes:` section of the docker-compose file.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | --------------- | ------------------------- |
|
||||
| mariadb | /var/lib/mysql | storage for owncloud data |
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | ---------------- | ------------------------- |
|
||||
| `mariadb` | `/var/lib/mysql` | storage for owncloud data |
|
||||
|
||||
#### Rebuild
|
||||
|
||||
```
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker-compose down
|
||||
docker pull owncloud
|
||||
@@ -57,11 +58,10 @@ docker-compose up -d
|
||||
|
||||
#### Docker-Compose.yml
|
||||
|
||||
```
|
||||
version: '3.1'
|
||||
```yml
|
||||
version: "3.1"
|
||||
|
||||
services:
|
||||
|
||||
owncloud:
|
||||
image: owncloud
|
||||
restart: unless-stopped
|
||||
@@ -75,7 +75,7 @@ services:
|
||||
image: mariadb
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: pass
|
||||
MYSQL_ROOT_PASSWORD: pass
|
||||
volumes:
|
||||
- mariadb:/var/lib/mysql
|
||||
|
||||
@@ -98,19 +98,19 @@ The original container and documentation are made by [tiynger](https://hub.docke
|
||||
|
||||
Set the following variables with the -e tag.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| -------- | --------------------------------------------------- | --------- |
|
||||
| USER | username of OwnCloud server | admin |
|
||||
| PASSWORD | password of OwnCloud server | admin |
|
||||
| URL | url of OwnCloud server (dont forget the http(s)://) | localhost |
|
||||
| Name | Usage | Default |
|
||||
| ---------- | --------------------------------------------------- | ----------- |
|
||||
| `USER` | username of OwnCloud server | `admin` |
|
||||
| `PASSWORD` | password of OwnCloud server | `admin` |
|
||||
| `URL` | url of OwnCloud server (dont forget the http(s)://) | `localhost` |
|
||||
|
||||
#### Additional
|
||||
|
||||
There are some special variables to set.
|
||||
|
||||
| Flag | Usage |
|
||||
| ------------------ | ---------------------------------------------------------- |
|
||||
| --opt-log max-size | prevent log file from growing to large (`50m` recommended) |
|
||||
| Flag | Usage |
|
||||
| -------------------- | ---------------------------------------------------------- |
|
||||
| `--opt-log max-size` | prevent log file from growing to large (`50m` recommended) |
|
||||
|
||||
#### Volumes
|
||||
|
||||
@@ -118,23 +118,23 @@ Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | --------------- | ----------------------------------- |
|
||||
| data | /data | directory for the owncloud contents |
|
||||
| `data` | `/data` | directory for the owncloud contents |
|
||||
|
||||
#### Rebuild
|
||||
|
||||
```
|
||||
```shell
|
||||
#!/bin/sh
|
||||
docker stop owncloudcli
|
||||
docker rm owncloudcli
|
||||
docker pull tiynger/owncloudclient
|
||||
docker run --name owncloudcli \
|
||||
--restart unless-stopped \
|
||||
-v owncloudcli:/data \
|
||||
-e USER='user' \
|
||||
-e PASSWORD='password' \
|
||||
-e URL='https://subdomain.domain.tld' \
|
||||
--log-opt max-size=50m \
|
||||
-d tiynger/owncloudclient
|
||||
--restart unless-stopped \
|
||||
-v owncloudcli:/data \
|
||||
-e USER='user' \
|
||||
-e PASSWORD='password' \
|
||||
-e URL='https://subdomain.domain.tld' \
|
||||
--log-opt max-size=50m \
|
||||
-d tiynger/owncloudclient
|
||||
```
|
||||
|
||||
## Error handling
|
||||
@@ -142,7 +142,8 @@ docker run --name owncloudcli \
|
||||
### Problems with a locked file
|
||||
|
||||
It is possible that you can't remove or move a locked file.
|
||||
If this problem doesn't resolve after a restart you can try to disable locking in the owncloud config.
|
||||
If this problem doesn't resolve after a restart you can try to disable locking
|
||||
in the owncloud config.
|
||||
This is done by adding the line `'filelocking.enabled' => false,` into the file `config/config.php`.
|
||||
Then try to resolve the error.
|
||||
Afterwards enable locking again by removing the added line.
|
||||
|
||||
Reference in New Issue
Block a user