docker-compose

This is a collection of handy docker-compose commands.

Samba

docker-compose exec samba chown -R 1002:1002 /mnt
docker-compose exec samba find /mnt/ -type d -exec chmod 750 {} \;
docker-compose exec samba find /mnt/ -type f -exec chmod 640 {} \;

Nextcloud

docker-compose build --pull
docker-compose exec app chown -R www-data:www-data /var/www/html/
docker-compose exec app find /var/www/html/ -type d -exec chmod 750 {} \;
docker-compose exec app find /var/www/html/ -type f -exec chmod 640 {} \;
docker-compose exec --user www-data app php -d memory_limit=2048M occ upgrade
docker-compose exec --user www-data app php -d memory_limit=2048M occ files:scan --all
docker-compose exec --user www-data app php -d memory_limit=2048M occ maintenance:mode --off