1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/nextcloud/README.md

59 lines
1.4 KiB
Markdown
Raw Normal View History

2016-07-10 14:03:02 +02:00
nextcloud
=========
2018-01-29 15:19:05 +02:00
:warning: IT'S DEPRECATED! PLEASE USE OFFICIAL DOCKER IMAGE: [nextcloud](https://hub.docker.com/_/nextcloud/)
2016-07-10 14:03:02 +02:00
[Nextcloud][1] puts your data at your fingertips, under your control.
## docker-compose.yml
```yaml
nextcloud:
2016-11-03 04:30:36 +02:00
image: indiehosters/nextcloud
2016-07-10 14:03:02 +02:00
ports:
2016-11-03 04:30:36 +02:00
- "127.0.0.1:9000:9000"
2016-07-10 14:03:02 +02:00
volumes:
2016-11-03 04:30:36 +02:00
- ./data/apps:/var/www/html/apps
- ./data/config:/var/www/html/config
- ./data/data:/var/www/html/data
restart: always
nginx:
image: nginx:alpine
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
2016-11-05 04:43:27 +02:00
- ./ssl:/etc/nginx/ssl
2016-11-03 04:30:36 +02:00
volumes_from:
- nextcloud
net: host
2016-07-10 14:03:02 +02:00
restart: always
```
## Server Setup
```bash
$ docker-compose up -d
2018-02-10 06:44:39 +02:00
$ docker-compose exec -u www-data nextcloud ./occ files:scan --all
2016-11-03 05:07:14 +02:00
Starting scan for user 1 out of 1 (admin)
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 10 | 21 | 00:00:00 |
+---------+-------+--------------+
2018-02-10 06:44:39 +02:00
$ crontab -l
0 * * * * docker exec -u www-data nextcloud_nextcloud_1 ./occ files:scan --all
2016-07-10 14:03:02 +02:00
```
2016-11-03 05:07:14 +02:00
You can use the [occ][2] admin tool.
2016-07-10 14:03:02 +02:00
## Client Setup
2016-11-03 04:30:36 +02:00
- Android: <https://download.nextcloud.com/android/>
2016-11-03 04:37:56 +02:00
- MacOSX: <https://download.nextcloud.com/desktop/releases/Mac/Installer/>
- Windows: <https://download.nextcloud.com/desktop/releases/Windows/>
2016-07-10 14:03:02 +02:00
[1]: https://nextcloud.com/
2016-11-03 05:07:14 +02:00
[2]: https://docs.nextcloud.com/server/9/admin_manual/configuration_server/occ_command.html