docker-compose to spin up an instance of nextcloud using containers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Kebler Network System Administrator 22d8796423 not working but in progress 2 weeks ago
scripts not working but in progress 2 weeks ago
.Caddyfile not working but in progress 2 weeks ago
.env-example First commit - working nextcloud 24 install via docker containers with collabra server and passman app 3 months ago
.gitignore not working but in progress 2 weeks ago
Dockerfile not working but in progress 2 weeks ago
build not working but in progress 2 weeks ago
config not working but in progress 2 weeks ago
custom_entrypoint.sh not working but in progress 2 weeks ago
dev.env not working but in progress 2 weeks ago
docker-compose.yml not working but in progress 2 weeks ago
imagick-update not working but in progress 2 weeks ago
phpinfo.php not working but in progress 2 weeks ago
readme.md not working but in progress 2 weeks ago
restart not working but in progress 2 weeks ago
start not working but in progress 2 weeks ago
stop not working but in progress 2 weeks ago
test not working but in progress 2 weeks ago
update not working but in progress 2 weeks ago

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