docker-compose to spin up an instance of nextcloud using containers
 
 
 
Go to file
Kebler Network System Administrator 22d8796423 not working but in progress 2022-11-18 09:00:18 -08:00
scripts not working but in progress 2022-11-18 09:00:18 -08:00
.Caddyfile not working but in progress 2022-11-18 09:00:18 -08:00
.env-example First commit - working nextcloud 24 install via docker containers with collabra server and passman app 2022-09-16 08:26:26 -07:00
.gitignore not working but in progress 2022-11-18 09:00:18 -08:00
Dockerfile not working but in progress 2022-11-18 09:00:18 -08:00
build not working but in progress 2022-11-18 09:00:18 -08:00
config not working but in progress 2022-11-18 09:00:18 -08:00
custom_entrypoint.sh not working but in progress 2022-11-18 09:00:18 -08:00
dev.env not working but in progress 2022-11-18 09:00:18 -08:00
docker-compose.yml not working but in progress 2022-11-18 09:00:18 -08:00
imagick-update not working but in progress 2022-11-18 09:00:18 -08:00
phpinfo.php not working but in progress 2022-11-18 09:00:18 -08:00
readme.md not working but in progress 2022-11-18 09:00:18 -08:00
restart not working but in progress 2022-11-18 09:00:18 -08:00
start not working but in progress 2022-11-18 09:00:18 -08:00
stop not working but in progress 2022-11-18 09:00:18 -08:00
test not working but in progress 2022-11-18 09:00:18 -08:00
update not working but in progress 2022-11-18 09:00:18 -08:00

readme.md

Best not to use bind mounts with volumes. Better to use bindfs outside of docker to mount them elsewhere with an owner map. Install if need be

on host make a nextcloud user with id 82 (which is www-data in fpm-alpine container)

must run bindfs as sudo for mapping

sudo bindfs --map=nextcloud/sysadmin /var/lib/docker/volumes/nextcloud_user-files/_data /data/nextcloud/user-files sudo bindfs --map=nextcloud/sysadmin /var/lib/docker/volumes/nextcloud_src/_data /data/nextcloud/src

sudo mv sudo bindfs -o nonempty --map=sysadmin/nextcloud /data/nextcloud/user-files /var/lib/docker/volumes/nextcloud_user-files/_data

sudo bindfs -u nextcloud -g nextcloud /data/nextcloud/user-files /var/lib/docker/volumes/nextcloud_user-files/_data bindfs -u nextcloud -g nextcloud /data/nextcloud/src /var/lib/docker/volumes/nextcloud_user-src/_data

adding container directory

apk add bindfs --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing addgroup --gid 1000 host &&
adduser -u 1000 -G host -g "" -D -H host &&
mkdir -p /source &&
mkdir -p /user-files &&
bindfs --force-user=host --force-group=host --create-for-user=www-data --create-for-group=www-data --chown-ignore --chgrp-ignore /var/www/html /source &&
bindfs --force-user=host --force-group=host --create-for-user=www-data --create-for-group=www-data --chown-ignore --chgrp-ignore /var/www/data /user-files