# Compose override: let Docker mount the NFS export for media storage. # # The base stack expects the export to be mounted on the Docker host and # bind-mounted in via MEDIA_ARCHIVE_DIR. With this override the Docker daemon # mounts the export itself, so nothing has to be in /etc/fstab on the host and a # missing host mount can no longer leave media on the host's local disk. # # NFS_ADDR=nas.local NFS_EXPORT=/volume1/church-media \ # docker compose -f docker-compose.yml -f docker-compose.nfs.yml up -d # # NFS_ADDR is the server, NFS_EXPORT is the exported path (no server prefix). # NFS_VERSION defaults to 4; set 3 on older exports. The mounted path inside the # container stays /archive, so Settings → Media storage keeps /archive. # # Verify inside the container (expect an `nfs`/`nfs4` line): # docker compose exec app grep ' /archive ' /proc/self/mounts services: app: volumes: - outbox-data:/tmp/outbox - uploads-data:/tmp/uploads - archive-nfs:/archive volumes: archive-nfs: driver: local driver_opts: type: nfs o: "addr=${NFS_ADDR:?set NFS_ADDR to the NFS server},rw,nfsvers=${NFS_VERSION:-4}" device: ":${NFS_EXPORT:?set NFS_EXPORT to the exported path}"