1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-30 09:16:41 +02:00
dockerfiles/nextcloud
2018-02-10 13:48:20 +08:00
..
arm nextcloud switched to official 2018-01-29 21:19:05 +08:00
ssl update nextcloud 2016-11-05 10:43:27 +08:00
backup.sh add backup.sh for nextcloud 2018-02-10 13:48:20 +08:00
docker-compose.yml update nextcloud 2016-11-05 10:43:27 +08:00
Dockerfile swith to new domain: easypi.pro 2017-05-08 07:05:07 +08:00
nginx.conf update nextcloud 2016-11-05 10:43:27 +08:00
README.md update nextcloud occ command 2018-02-10 12:48:26 +08:00

nextcloud

⚠️ IT'S DEPRECATED! PLEASE USE OFFICIAL DOCKER IMAGE: nextcloud

Nextcloud puts your data at your fingertips, under your control.

docker-compose.yml

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

$ 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 admin tool.

Client Setup