Loading nextcloud/README.md +26 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,32 @@ The original ownCloud developer Frank Karlitschek forked ownCloud and created Nextcloud, which continues to be actively developed by Karlitschek and other members of the original ownCloud team. ## Setup ### Cron Ajax is the default, byt cron is the best To setup cron, add this line to your crontab: ``` */5 * * * * docker exec -u www-data make-my-server-nextcloud-1 php -f cron.php ``` Which should lead to: ```bash $ crontab -l ... #min hour day Month Day_Of_Week Command */5 * * * * docker exec -u www-data make-my-server-nextcloud-1 php -f cron.php ``` ### Database If you forgot to install nextcloud with its dedicated database, you can run this command to migrate from anything to the mariadb instance: ``` docker-compose exec -u www-data nextcloud php occ db:convert-type --all-apps --port 3306 --password nextcloud mysql nextcloud nextcloud-db nextcloud ``` ## Upgrade How to upgrade your Nextcloud instance: ```bash Loading nextcloud/docker-compose.nextcloud.yml +9 −3 Original line number Diff line number Diff line version: '2' networks: nextcloud-internal: services: nextcloud: image: nextcloud links: - nextcloud-db volumes: - './nextcloud/data:/var/www/html' networks: - 'srv' - 'nextcloud-internal' restart: always depends_on: - nextcloud-db healthcheck: test: ['CMD', 'curl', '0.0.0.0:80'] interval: 10s Loading @@ -35,9 +39,11 @@ services: command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW volumes: - './nextcloud/db:/var/lib/mysql' networks: - 'nextcloud-internal' environment: - 'MYSQL_ROOT_PASSWORD=pass' - 'MYSQL_PASSWORD=' - 'MYSQL_PASSWORD=nextcloud' - 'MYSQL_DATABASE=nextcloud' - 'MYSQL_USER=nextcloud' restart: always Loading Loading
nextcloud/README.md +26 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,32 @@ The original ownCloud developer Frank Karlitschek forked ownCloud and created Nextcloud, which continues to be actively developed by Karlitschek and other members of the original ownCloud team. ## Setup ### Cron Ajax is the default, byt cron is the best To setup cron, add this line to your crontab: ``` */5 * * * * docker exec -u www-data make-my-server-nextcloud-1 php -f cron.php ``` Which should lead to: ```bash $ crontab -l ... #min hour day Month Day_Of_Week Command */5 * * * * docker exec -u www-data make-my-server-nextcloud-1 php -f cron.php ``` ### Database If you forgot to install nextcloud with its dedicated database, you can run this command to migrate from anything to the mariadb instance: ``` docker-compose exec -u www-data nextcloud php occ db:convert-type --all-apps --port 3306 --password nextcloud mysql nextcloud nextcloud-db nextcloud ``` ## Upgrade How to upgrade your Nextcloud instance: ```bash Loading
nextcloud/docker-compose.nextcloud.yml +9 −3 Original line number Diff line number Diff line version: '2' networks: nextcloud-internal: services: nextcloud: image: nextcloud links: - nextcloud-db volumes: - './nextcloud/data:/var/www/html' networks: - 'srv' - 'nextcloud-internal' restart: always depends_on: - nextcloud-db healthcheck: test: ['CMD', 'curl', '0.0.0.0:80'] interval: 10s Loading @@ -35,9 +39,11 @@ services: command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW volumes: - './nextcloud/db:/var/lib/mysql' networks: - 'nextcloud-internal' environment: - 'MYSQL_ROOT_PASSWORD=pass' - 'MYSQL_PASSWORD=' - 'MYSQL_PASSWORD=nextcloud' - 'MYSQL_DATABASE=nextcloud' - 'MYSQL_USER=nextcloud' restart: always Loading