Skip to main content

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 {} \;
docker-compose exec samba chown -R 1002:1002 /syncthing

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

iobroker

docker-compose exec iobroker chown -R 1002:1002 /opt/iobroker

mosquitto

docker-compose exec mosquitto chown -R 1002:1002 /mosquitto
docker-compose exec sabnzbd chown -R 1000:1000 /config

docker-compose exec sonarr chown -R 1000:1000 /config

docker-compose exec radarr chown -R 1000:1000 /config

docker-compose exec lazylibrarian chown -R 1000:1000 /config

docker-compose exec sabnzbd chown -R 1000:1000 /completed

docker-compose exec lazylibrarian chown -R 1000:1000 /downloads