Go to file
Florian Rupp 80688f4b33 Initial 2024-04-06 17:53:06 +02:00
php-fpm Initial 2024-04-06 17:53:06 +02:00
LICENSE Initial commit 2024-04-06 17:06:10 +02:00
README.md Initial 2024-04-06 17:53:06 +02:00
docker-compose.yml Initial 2024-04-06 17:53:06 +02:00
nginx.conf Initial 2024-04-06 17:53:06 +02:00

README.md

Nextcloud Docker

To get things set up:

  • sudo chown -R www-data:www-data /your/nextcloud/webroot
  • sudo chown -R www-data:www-data /your/nextcloud/data

Environment variables:

  • DATA_DIR: Where your nextcloud data should be. The same as /your/nextcloud/data
  • NEXTCLOUD_DIR: Where your nextcloud webroot should be. The same as /your/nextcloud/webroot
  • MARIADB_ROOT_PASS and MARIADB_PASS: Password for your mariadb root user and the user called "nextcloud"
  • TRAEFIK_CUSTOM_MIDDLEWARES: (optional) add additional middlewares if you have any
  • DOMAIN: Set this to your domain like "`example.com`" or for more than one "`example.com`,`another.com`" Don't forget the backticks

For testing system cron run this yourself first:

  • docker exec -u www-data php-fpm-nextcloud php --define apc.enable_cli=1 /var/www/html/cron.php If it doesn't throw any errors, you're set. Add this to your crontab and forget it:
  • */5 * * * * docker exec -u www-data php-fpm-nextcloud php --define apc.enable_cli=1 /var/www/html/cron.php Make sure you enable system cron in your Nextcloud settings.