1
0
Fork 0

Update README

This commit is contained in:
Daniele Tricoli 2016-11-28 23:54:06 +01:00
parent ea15c87a61
commit 67be5093d9
1 changed files with 9 additions and 9 deletions

View File

@ -1,27 +1,27 @@
# docker-owncloud #
# docker-nextcloud #
Docker i386 image with ownCloud and nginx. It uses SQLite as database because
Docker i386 image with Nextcloud and nginx. It uses SQLite as database because
it is intended for personal use only (one user). It also uses two docker
volumes, one for config and one for data.
## Build ##
```
docker build -t 'yourusername/owncloud' .
docker build -t 'yourusername/nextcloud' .
```
## Run ##
```shell
docker run -d -p 127.0.0.1:9000:80 --name owncloud \
-v /srv/owncloud/config:/srv/owncloud/config \
-v /srv/owncloud/data:/srv/owncloud/data eriol/owncloud
docker run -d -p 127.0.0.1:9000:80 --name nextcloud \
-v /srv/nextcloud/config:/srv/nextcloud/config \
-v /srv/nextcloud/data:/srv/nextcloud/data eriol/nextcloud
```
For owncloud >= 8.1.0 you need, on the host, to link certificates bundle inside
For nextcloud >= 8.1.0 you need, on the host, to link certificates bundle inside
config volume:
```shell
ln -s /etc/ssl/certs/ca-certificates.crt /srv/owncloud/config/ca-bundle.crt
ln -s /etc/ssl/certs/ca-certificates.crt /srv/nextcloud/config/ca-bundle.crt
```
You should use nginx on the host as reverse proxy:
@ -29,7 +29,7 @@ You should use nginx on the host as reverse proxy:
```
server {
listen 80;
server_name owncloud.example.org;
server_name nextcloud.example.org;
return 301 https://$host$request_uri;
}