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
3 changed files with 13 additions and 1 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/

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

@ -1,7 +1,7 @@
version: "3.8"
services:
web:
image: nginx:1.29.6
image: nginx:1.29.4
depends_on:
- app
configs: