|
|
@ -11,14 +11,16 @@ The services in this files are explained seperately.
|
|
|
|
#### Owncloud
|
|
|
|
#### Owncloud
|
|
|
|
|
|
|
|
|
|
|
|
##### Volumes
|
|
|
|
##### Volumes
|
|
|
|
|
|
|
|
|
|
|
|
Set the following volumes in the `volumes:` section of the docker-compose file.
|
|
|
|
Set the following volumes in the `volumes:` section of the docker-compose file.
|
|
|
|
|
|
|
|
|
|
|
|
| Volume-Name | Container mount | Description |
|
|
|
|
| Volume-Name | Container mount | Description |
|
|
|
|
| ---------------- | ---------------------- | ---------------------------- |
|
|
|
|
| ----------- | -------------------- | ---------------------------- |
|
|
|
|
| owncloud | /var/www/html | storage for owncloud plugins |
|
|
|
|
| owncloud | /var/www/html | storage for owncloud plugins |
|
|
|
|
| config | /var/www/html/config | storage for owncloud config |
|
|
|
|
| config | /var/www/html/config | storage for owncloud config |
|
|
|
|
|
|
|
|
|
|
|
|
##### Ports
|
|
|
|
##### Ports
|
|
|
|
|
|
|
|
|
|
|
|
Set the following ports in the `ports:` section.
|
|
|
|
Set the following ports in the `ports:` section.
|
|
|
|
|
|
|
|
|
|
|
|
| Container Port | Recommended outside port | Protocol | Description |
|
|
|
|
| Container Port | Recommended outside port | Protocol | Description |
|
|
|
@ -28,6 +30,7 @@ Set the following ports in the `ports:` section.
|
|
|
|
#### Maria DB
|
|
|
|
#### Maria DB
|
|
|
|
|
|
|
|
|
|
|
|
##### Environment-variables
|
|
|
|
##### 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 |
|
|
|
|
| Name | Usage | Default |
|
|
|
@ -35,10 +38,11 @@ Set the following environment-variables in the `environment:` section of the doc
|
|
|
|
| MYSQL\_ROOT\_PASSWORD | set the mysql admin password | |
|
|
|
|
| MYSQL\_ROOT\_PASSWORD | set the mysql admin password | |
|
|
|
|
|
|
|
|
|
|
|
|
##### Volumes
|
|
|
|
##### Volumes
|
|
|
|
|
|
|
|
|
|
|
|
Set the following volumes in the `volumes:` section of the docker-compose file.
|
|
|
|
Set the following volumes in the `volumes:` section of the docker-compose file.
|
|
|
|
|
|
|
|
|
|
|
|
| Volume-Name | Container mount | Description |
|
|
|
|
| Volume-Name | Container mount | Description |
|
|
|
|
| ---------------- | ---------------------- | ---------------------------- |
|
|
|
|
| ----------- | --------------- | ------------------------- |
|
|
|
|
| mariadb | /var/lib/mysql | storage for owncloud data |
|
|
|
|
| mariadb | /var/lib/mysql | storage for owncloud data |
|
|
|
|
|
|
|
|
|
|
|
|
#### Rebuild
|
|
|
|
#### Rebuild
|
|
|
@ -91,15 +95,25 @@ volumes:
|
|
|
|
The original container and documentation are made by [tiynger](https://hub.docker.com/r/tiynger/owncloudclient)
|
|
|
|
The original container and documentation are made by [tiynger](https://hub.docker.com/r/tiynger/owncloudclient)
|
|
|
|
|
|
|
|
|
|
|
|
#### Environment-variables
|
|
|
|
#### Environment-variables
|
|
|
|
|
|
|
|
|
|
|
|
Set the following variables with the -e tag.
|
|
|
|
Set the following variables with the -e tag.
|
|
|
|
|
|
|
|
|
|
|
|
| Name | Usage | Default |
|
|
|
|
| Name | Usage | Default |
|
|
|
|
| ----------- | --------------------------------------------------- | --------- |
|
|
|
|
| -------- | --------------------------------------------------- | --------- |
|
|
|
|
| USER | username of OwnCloud server | admin |
|
|
|
|
| USER | username of OwnCloud server | admin |
|
|
|
|
| PASSWORD | password of OwnCloud server | admin |
|
|
|
|
| PASSWORD | password of OwnCloud server | admin |
|
|
|
|
| URL | url of OwnCloud server (dont forget the http(s)://) | localhost |
|
|
|
|
| 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) |
|
|
|
|
|
|
|
|
|
|
|
|
#### Volumes
|
|
|
|
#### Volumes
|
|
|
|
|
|
|
|
|
|
|
|
Set the following volumes with the -v tag.
|
|
|
|
Set the following volumes with the -v tag.
|
|
|
|
|
|
|
|
|
|
|
|
| Volume-Name | Container mount | Description |
|
|
|
|
| Volume-Name | Container mount | Description |
|
|
|
@ -119,12 +133,14 @@ docker run --name owncloudcli \
|
|
|
|
-e USER='user' \
|
|
|
|
-e USER='user' \
|
|
|
|
-e PASSWORD='password' \
|
|
|
|
-e PASSWORD='password' \
|
|
|
|
-e URL='https://subdomain.domain.tld' \
|
|
|
|
-e URL='https://subdomain.domain.tld' \
|
|
|
|
|
|
|
|
--log-opt max-size=50m \
|
|
|
|
-d tiynger/owncloudclient
|
|
|
|
-d tiynger/owncloudclient
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Error handling
|
|
|
|
## Error handling
|
|
|
|
|
|
|
|
|
|
|
|
### Problems with a locked file
|
|
|
|
### Problems with a locked file
|
|
|
|
|
|
|
|
|
|
|
|
It is possible that you can't remove or move 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`.
|
|
|
|
This is done by adding the line `'filelocking.enabled' => false,` into the file `config/config.php`.
|
|
|
@ -133,4 +149,3 @@ Afterwards enable locking again by removing the added line.
|
|
|
|
|
|
|
|
|
|
|
|
The reason I choose this process over editing the database file, is ease of use.
|
|
|
|
The reason I choose this process over editing the database file, is ease of use.
|
|
|
|
The editing of the database is much more time consuming especially if run with docker.
|
|
|
|
The editing of the database is much more time consuming especially if run with docker.
|
|
|
|
|
|
|
|
|
|
|
|