From 178c602d4cbcef9ff9d94c56c67db6d93a22e4a2 Mon Sep 17 00:00:00 2001 From: Beda Schmid Date: Sat, 24 Oct 2026 19:46:25 +0000 Subject: [PATCH] Standardize uhleloX deployment layout --- .gitignore | 9 +++++++++ README.md | 21 +++++++++++++++++++++ docker-compose.yml | 27 +++++++++++++++++++++++++++ uhlelox.conf | 12 ++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 docker-compose.yml create mode 100644 uhlelox.conf 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..0ca566f --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# UhleloX + +UhleloX serves the static website at https://uhlelox.com using nginx. + +## Deployment layout + +- **Compose:** `/srv/docker/uhlelox/docker-compose.yml` +- **Static configuration/source:** `/srv/docker/uhlelox/uhlelox.conf`; application source tracking is pending +- **Non-secret environment:** none +- **Secrets:** none declared by this deployment +- **NVMe application state:** `/srv/appdata/uhlelox/www`, containing the deployed website and bundled assets, 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.12`, existing reverse proxy and DNS for uhlelox.com +- **Back up:** `/srv/appdata/uhlelox/www` and the deployment repository; the website currently has no separate source repository +- **Re-creatable:** the nginx image; the custom website and bundled assets cannot be recovered from that image diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f981293 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,27 @@ +name: uhlelox + +services: + uhlelox: + image: nginx:alpine + container_name: uhlelox + restart: unless-stopped + volumes: + - type: bind + source: /srv/appdata/uhlelox/www + target: /var/www/html + read_only: true + bind: + create_host_path: false + - type: bind + source: /srv/docker/uhlelox/uhlelox.conf + target: /etc/nginx/conf.d/default.conf + read_only: true + bind: + create_host_path: false + networks: + npm_proxy: + ipv4_address: 192.168.99.12 + +networks: + npm_proxy: + external: true diff --git a/uhlelox.conf b/uhlelox.conf new file mode 100644 index 0000000..9349e8e --- /dev/null +++ b/uhlelox.conf @@ -0,0 +1,12 @@ +server { + listen 80; + server_name uhlelox.com; + root /var/www/html; + index index.html; + location / { + try_files $uri $uri/ /index.html?$query_string; + } + location ~ /\.ht { + deny all; + } +}