mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-14 11:23:02 +02:00
59 lines
1.4 KiB
Markdown
59 lines
1.4 KiB
Markdown
nextcloud
|
|
=========
|
|
|
|
:warning: IT'S DEPRECATED! PLEASE USE OFFICIAL DOCKER IMAGE: [nextcloud](https://hub.docker.com/_/nextcloud/)
|
|
|
|
[Nextcloud][1] puts your data at your fingertips, under your control.
|
|
|
|
## docker-compose.yml
|
|
|
|
```yaml
|
|
nextcloud:
|
|
image: indiehosters/nextcloud
|
|
ports:
|
|
- "127.0.0.1:9000:9000"
|
|
volumes:
|
|
- ./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
|
|
- ./ssl:/etc/nginx/ssl
|
|
volumes_from:
|
|
- nextcloud
|
|
net: host
|
|
restart: always
|
|
```
|
|
|
|
## Server Setup
|
|
|
|
```bash
|
|
$ docker-compose up -d
|
|
|
|
$ docker-compose exec -u www-data nextcloud ./occ files:scan --all
|
|
Starting scan for user 1 out of 1 (admin)
|
|
+---------+-------+--------------+
|
|
| Folders | Files | Elapsed time |
|
|
+---------+-------+--------------+
|
|
| 10 | 21 | 00:00:00 |
|
|
+---------+-------+--------------+
|
|
|
|
$ crontab -l
|
|
0 * * * * docker exec -u www-data nextcloud_nextcloud_1 ./occ files:scan --all
|
|
```
|
|
|
|
You can use the [occ][2] admin tool.
|
|
|
|
## Client Setup
|
|
|
|
- Android: <https://download.nextcloud.com/android/>
|
|
- MacOSX: <https://download.nextcloud.com/desktop/releases/Mac/Installer/>
|
|
- Windows: <https://download.nextcloud.com/desktop/releases/Windows/>
|
|
|
|
[1]: https://nextcloud.com/
|
|
[2]: https://docs.nextcloud.com/server/9/admin_manual/configuration_server/occ_command.html
|