diff --git a/README.md b/README.md index fa1528b90b1394c50bc3746f0a6343471efce952..16d13869ca707bc30adc4fbcb29cf2ce465600d3 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ We suggest you use our [ecloud-selfhosting](https://gitlab.e.foundation/e/infra/ - Create a copy of the `ecloud_dev_example` directory locally where you want to install an `ecloud` development environment - Use `cd` or file manager to enter the above directory - Add a `.env` file with chosen attributes(example [.env](./ecloud_dev_example/.dev.env) file here, you can rename to `.env` to use same defaults) +- Set correct permissions to volumes: + - `chown -R '33':'33' volumes/nextcloud/{html,data,log}` - Pull the images and up the containers - `docker-compose pull` - `docker-compose up -d` @@ -26,7 +28,6 @@ We suggest you use our [ecloud-selfhosting](https://gitlab.e.foundation/e/infra/ - Set config values, disable integrity check and refresh theme cache: - `docker exec -u www-data ecloud /var/www/html/occ config:system:set theme --value='eCloud'` - - `docker exec -u www-data ecloud /var/www/html/occ config:system:set datadirectory --value='/var/www/data'` - `docker exec -u www-data ecloud /var/www/html/occ config:system:set logfile --value='/var/www/log/nextcloud.log'` - `docker exec -u www-data ecloud /var/www/html/occ config:system:set loglevel --value='2' --type=integer` - `docker exec -u www-data ecloud /var/www/html/occ config:system:set integrity.check.disabled --value='true' --type=boolean` @@ -52,11 +53,8 @@ We suggest you use our [ecloud-selfhosting](https://gitlab.e.foundation/e/infra/ - `docker exec -u www-data ecloud /var/www/html/occ app:enable integration_google` - To install more apps, use `docker exec -u www-data ecloud /var/www/html/occ app:install $app` where `$app` is the name of the app -- Add a new group in your bash shell to make the `html` folder editable(run commands with `sudo` if required): - - `groupadd ecloud` - - `usermod -a -G ecloud http` - - `usermod -a -G ecloud $USER` - - `chgrp -R ecloud volumes/nextcloud/html` +- To make the `html` folder editable to current user(`$USER`)(run commands with `sudo` if required): + - `usermod -a -G '33' $USER` - `chmod -R g+w volumes/nextcloud/html` - Log out and log back into your system diff --git a/ecloud_dev_example/docker-compose.yml b/ecloud_dev_example/docker-compose.yml index 9dd491077497df69a8f9706af6af17a4c5f15960..21f736aa29e1b0a35aa2190fef790f02a7bda73f 100644 --- a/ecloud_dev_example/docker-compose.yml +++ b/ecloud_dev_example/docker-compose.yml @@ -31,6 +31,7 @@ services: - MYSQL_HOST=mariadb - NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER} - NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD} + - NEXTCLOUD_DATA_DIR=/var/www/data - NEXTCLOUD_EMAIL_RECOVERY_APP_SECRET=${NEXTCLOUD_EMAIL_RECOVERY_APP_SECRET} - ECLOUD_ACCOUNTS_SECRET=${ECLOUD_ACCOUNTS_SECRET}