commit c53e1d83883b62c316dac0d3b929ae35fd1a4b76 Author: Beda Schmid Date: Sat Oct 24 19:37:43 2026 +0000 Standardize DynamicPress deployment layout diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..189eb19 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.env +.env.* +!.env.example +.DS_Store +*.log +*.key +*.pem +secrets/ +www/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..1349a75 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# DynamicPress + +DynamicPress serves the static website at https://dynamicpress.org using nginx. + +## Deployment layout + +- **Compose:** `/srv/docker/dynamicpress/docker-compose.yml` +- **Static configuration/source:** `/srv/docker/dynamicpress/dynamicpress.conf`; deployed HTML is stored separately, and its authoritative source repository remains unconfirmed +- **Non-secret environment:** none +- **Secrets:** none declared by this deployment +- **NVMe application state:** `/srv/appdata/dynamicpress/www`, containing the deployed website and mounted read-only at `/var/www/html` +- **Bulk HDD data:** none +- **Other mounts:** none + +Secrets are never committed to this repository. TLS is handled outside this container by the existing reverse proxy. + +## Dependencies and recovery + +- **Networks/dependencies:** external `npm_proxy`, fixed address `192.168.99.14`, existing reverse proxy and DNS for dynamicpress.org +- **Back up:** `/srv/appdata/dynamicpress/www` and the deployment repository; the deployed HTML must be preserved until its authoritative source and recovery process are established +- **Re-creatable:** the nginx image; the custom website cannot be recovered from that image diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e0bb395 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,27 @@ +name: dynamicpress + +services: + dynamicpress: + image: nginx:alpine + container_name: dynamicpress + restart: unless-stopped + volumes: + - type: bind + source: /srv/appdata/dynamicpress/www + target: /var/www/html + read_only: true + bind: + create_host_path: false + - type: bind + source: /srv/docker/dynamicpress/dynamicpress.conf + target: /etc/nginx/conf.d/default.conf + read_only: true + bind: + create_host_path: false + networks: + npm_proxy: + ipv4_address: 192.168.99.14 + +networks: + npm_proxy: + external: true diff --git a/dynamicpress.conf b/dynamicpress.conf new file mode 100644 index 0000000..f051eff --- /dev/null +++ b/dynamicpress.conf @@ -0,0 +1,12 @@ +server { + listen 80; + server_name dynamicpress.org; + root /var/www/html; + index index.html; + location / { + try_files $uri $uri/ /index.html?$query_string; + } + location ~ /\.ht { + deny all; + } +}