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 4 months ago
scripts not working but in progress 4 months ago
.Caddyfile not working but in progress 4 months ago
.env-example First commit - working nextcloud 24 install via docker containers with collabra server and passman app 7 months ago
.gitignore not working but in progress 4 months ago
Dockerfile not working but in progress 4 months ago
build not working but in progress 4 months ago
config not working but in progress 4 months ago
custom_entrypoint.sh not working but in progress 4 months ago
dev.env not working but in progress 4 months ago
docker-compose.yml not working but in progress 4 months ago
imagick-update not working but in progress 4 months ago
phpinfo.php not working but in progress 4 months ago
readme.md not working but in progress 4 months ago
restart not working but in progress 4 months ago
start not working but in progress 4 months ago
stop not working but in progress 4 months ago
test not working but in progress 4 months ago
update not working but in progress 4 months 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