commit 508c0aa254ef290934020c60fe4a9eec147eec28 Author: Beda Schmid Date: Sat Oct 24 16:44:26 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..e4f3b74 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# Undenk + +Undenk runs the WordPress website at https://www.undenk.info with existing content and a custom theme. + +## Deployment layout + +- **Compose:** `/srv/docker/undenk/docker-compose.yml` +- **Static configuration/source:** none beyond Compose in this deployment repository; authoritative source control for the custom theme remains pending +- **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:** no active HDD bind after migration; original `/data/Data1/websites/undenk/wordpress` and `/data/Data1/websites/undenk/db` are temporarily retained as stopped-state rollback copies +- **Other mounts:** none + +Secrets are never committed to this repository. Protect WordPress configuration, +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. +- **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 new file mode 100644 index 0000000..8d562bf --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,41 @@ +name: undenk + +services: + undenk-wp: + image: wordpress + container_name: undenk-wp + restart: unless-stopped + env_file: + - /srv/docker/secrets/undenk/.env + environment: + WORDPRESS_DB_HOST: undenk-db + WORDPRESS_SITEURL: https://www.undenk.info + WORDPRESS_HOME: https://www.undenk.info + volumes: + - /srv/appdata/undenk/wordpress:/var/www/html + networks: + npm_proxy: + ipv4_address: 192.168.99.11 + undenk_internal: + + undenk-db: + mem_limit: 2g + memswap_limit: 3g + image: mysql:8.0 + container_name: undenk-db + restart: unless-stopped + env_file: + - /srv/docker/secrets/undenk/.env + environment: + MYSQL_DATABASE: tktudk01 + MYSQL_RANDOM_ROOT_PASSWORD: '1' + volumes: + - /srv/appdata/undenk/mysql:/var/lib/mysql + networks: + - undenk_internal + +networks: + npm_proxy: + external: true + undenk_internal: + driver: bridge