commit 824d51eb6d8449ae8ebb77c80d8c0a7a6c7ecc3e Author: Beda Schmid Date: Sat Oct 24 16:29:00 2026 +0000 Reset history to current sanitized state diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..14e243b --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +# Application state and recovery copies +/wordpress/ +/mysql/ +/db/ +/appdata/ +/backups/ +/pre-cleanup/ + +# Environment and credentials +.env +.env.* +*.env +*.env.* +/secrets/ +wp-config.php +*.sql +*.sql.gz +*.key +*.pem +*.p12 +*.pfx + +# Editor and operating-system files +.DS_Store +*~ +*.swp + +# BEGIN reset-history environment exclusions +.env +.env.* +*.env +*.env.* +!.env.example +!.env.*.example +!*.env.example +!*.env.*.example +# END reset-history environment exclusions diff --git a/README.md b/README.md new file mode 100644 index 0000000..b6748f3 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# GeneratePlugins + +GeneratePlugins runs the WordPress website at https://www.generateplugins.com. + +## Deployment layout + +- **Compose:** `/srv/docker/generateplugins/docker-compose.yml` +- **Static configuration/source:** none beyond Compose; the installed WordPress tree is application-managed state +- **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 +- **Other mounts:** none + +Secrets are never committed to this repository. WordPress configuration may +contain application-managed credentials and salts; protect the complete +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. +- **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 new file mode 100644 index 0000000..eabde5d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,42 @@ +name: generateplugins + +services: + + generateplugins-wp: + image: wordpress + container_name: generateplugins-wp + restart: unless-stopped + env_file: + - /srv/docker/secrets/generateplugins/.env + environment: + WORDPRESS_DB_HOST: generateplugins-db + WORDPRESS_SITEURL: https://www.generateplugins.com + WORDPRESS_HOME: https://www.generateplugins.com + volumes: + - /srv/appdata/generateplugins/wordpress:/var/www/html + networks: + generateplugins_internal: + npm_proxy: + ipv4_address: 192.168.99.10 + + generateplugins-db: + mem_limit: 2g + memswap_limit: 3g + image: mysql:8.0 + container_name: generateplugins-db + restart: unless-stopped + env_file: + - /srv/docker/secrets/generateplugins/.env + environment: + MYSQL_DATABASE: generateplug + MYSQL_RANDOM_ROOT_PASSWORD: '1' + volumes: + - /srv/appdata/generateplugins/mysql:/var/lib/mysql + networks: + - generateplugins_internal + +networks: + npm_proxy: + external: true + generateplugins_internal: + driver: bridge