From 2424b4e68c62093aecb15ca817c11f544c0ca432 Mon Sep 17 00:00:00 2001 From: Beda Schmid Date: Sat, 24 Oct 2026 17:35:00 +0000 Subject: [PATCH] Change uploads location --- README.md | 6 +++--- docker-compose.yml | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 366d3cd..ad5cfc0 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Undenk runs the WordPress website at https://www.undenk.info with existing conte - **Non-secret environment:** database hostname, declared website URLs, database name, and MySQL initialization control are inline in Compose - **Secrets:** `/srv/docker/secrets/undenk/.env`, supplied to WordPress and MySQL - **NVMe application state:** `/srv/appdata/undenk/wordpress` and `/srv/appdata/undenk/mysql` -- **Bulk HDD data:** none +- **Bulk HDD data:** `/data/Data1/undenk/uploads`, mounted at `/var/www/html/wp-content/uploads` - **Other mounts:** none Secrets are never committed to this repository. Protect WordPress configuration, @@ -17,6 +17,6 @@ application-managed credentials, and salts alongside the central environment. ## Dependencies and recovery -- **Networks/dependencies:** dedicated `undenk_internal` bridge for WordPress and MySQL; WordPress also joins external `npm_proxy` at `192.168.99.11`; existing reverse proxy and DNS for www.undenk.info -- **Back up:** a consistent MySQL backup, the complete WordPress tree including the custom theme and uploads, the central environment, and deployment configuration. Independent backup coverage and restore testing remain to be confirmed. +- **Networks/dependencies:** dedicated `undenk_internal` bridge for WordPress and MySQL; WordPress also joins external `npm_proxy` at `192.168.99.11`; existing reverse proxy and DNS for www.undenk.info; Data1 must be mounted before starting WordPress +- **Back up:** a consistent MySQL backup, `/srv/appdata/undenk/wordpress` including the custom theme, `/data/Data1/undenk/uploads`, the central environment, and deployment configuration. Independent backup coverage and restore testing remain to be confirmed. - **Re-creatable:** container images and downloadable upstream distributions; site content, custom code, uploads, and configuration require retained copies for recovery diff --git a/docker-compose.yml b/docker-compose.yml index 8d562bf..72369c5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,11 @@ services: WORDPRESS_HOME: https://www.undenk.info volumes: - /srv/appdata/undenk/wordpress:/var/www/html + - type: bind + source: /data/Data1/undenk/uploads + target: /var/www/html/wp-content/uploads + bind: + create_host_path: false networks: npm_proxy: ipv4_address: 192.168.99.11