From b6da9c0baf6e15a82bc37a325720fad412415aea Mon Sep 17 00:00:00 2001 From: Beda Schmid Date: Sat, 24 Oct 2026 17:33:38 +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 b6748f3..d3dc428 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ GeneratePlugins runs the WordPress website at https://www.generateplugins.com. - **Non-secret environment:** database hostname, declared website URLs, database name, and MySQL initialization control are inline in Compose - **Secrets:** `/srv/docker/secrets/generateplugins/.env`, supplied to WordPress and MySQL - **NVMe application state:** `/srv/appdata/generateplugins/wordpress` and `/srv/appdata/generateplugins/mysql` -- **Bulk HDD data:** none after migration; the small WordPress tree, including uploads, remains together on NVMe +- **Bulk HDD data:** `/data/Data1/generateplugins/uploads`, mounted at `/var/www/html/wp-content/uploads` - **Other mounts:** none Secrets are never committed to this repository. WordPress configuration may @@ -18,6 +18,6 @@ application-state tree alongside the central environment. ## Dependencies and recovery -- **Networks/dependencies:** dedicated `generateplugins_internal` bridge for WordPress and MySQL; WordPress also joins external `npm_proxy` at `192.168.99.10`; existing reverse proxy and DNS for www.generateplugins.com -- **Back up:** no independent backup was requested by the owner for this instance. If preservation becomes necessary, retain a consistent database backup, the complete WordPress tree, central environment, and deployment configuration. +- **Networks/dependencies:** dedicated `generateplugins_internal` bridge for WordPress and MySQL; WordPress also joins external `npm_proxy` at `192.168.99.10`; existing reverse proxy and DNS for www.generateplugins.com; Data1 must be mounted before starting WordPress +- **Back up:** no independent backup was requested by the owner for this instance. For recovery, preserve a consistent MySQL backup, `/srv/appdata/generateplugins/wordpress`, `/data/Data1/generateplugins/uploads`, the central environment, and deployment configuration. - **Re-creatable:** container images and downloadable WordPress distributions; installed plugins, themes, uploads, configuration, and database contents require retained state for an exact recovery diff --git a/docker-compose.yml b/docker-compose.yml index eabde5d..bf9a232 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,11 @@ services: WORDPRESS_HOME: https://www.generateplugins.com volumes: - /srv/appdata/generateplugins/wordpress:/var/www/html + - type: bind + source: /data/Data1/generateplugins/uploads + target: /var/www/html/wp-content/uploads + bind: + create_host_path: false networks: generateplugins_internal: npm_proxy: