Compare commits

..

1 Commits

Author SHA1 Message Date
079812a9fa Adding a data volume to nextcloud
Instead of storing the nextcloud data as a docker volume,
store it on the local filesystem.
2026-03-22 15:46:49 +01:00
4 changed files with 15 additions and 3 deletions

View File

@ -23,6 +23,11 @@ SECRET_ADMIN_PASSWORD_VERSION=v1
EXTRA_VOLUME=/dev/null:/tmp/.dummy
# Use a local bind mount for nextdata instead of a named volume.
# The directory must exist on the host before deploying.
# COMPOSE_FILE="$COMPOSE_FILE:compose.local-data.yml"
# NEXTDATA_PATH=/path/on/host/nextdata
PHP_MEMORY_LIMIT=1G
PHP_UPLOAD_LIMIT=512M
# fpm-tune, see: https://spot13.com/pmcalculator/

View File

@ -29,7 +29,7 @@ services:
mode: 0600
searchindexer:
image: nextcloud:32.0.6-fpm
image: nextcloud:32.0.3-fpm
volumes:
- nextcloud:/var/www/html/
- nextapps:/var/www/html/custom_apps:cached

7
compose.local-data.yml Normal file
View File

@ -0,0 +1,7 @@
volumes:
nextdata:
driver: local
driver_opts:
type: none
o: bind
device: ${NEXTDATA_PATH}

View File

@ -48,7 +48,7 @@ services:
start_period: 5m
app:
image: nextcloud:32.0.6-fpm
image: nextcloud:32.0.3-fpm
depends_on:
- db
configs:
@ -109,7 +109,7 @@ services:
start_period: 15m
cron:
image: nextcloud:32.0.6-fpm
image: nextcloud:32.0.3-fpm
volumes:
- nextcloud:/var/www/html/
- nextapps:/var/www/html/custom_apps:cached