π‘οΈ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
Complete DB admin vars in Docker/docker-compose.yml (#221 follow-up)
sassanixd0b1b25a7527
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c5cd9d8..239c3c8 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,7 +4,7 @@- **Dependency and runtime updates:** gunicorn 24.1.1 β 26.2.0 and gevent 24.11.1 β 26.9.0 (the new gevent ships Python 3.15 wheels, ending the from-source compile that slowed multi-arch Docker builds), python-dateutil 2.9.0 β 3.0.0, setuptools 84.0.0 β 84.2.1, and the Python 3.15 slim base image digest refreshed.-- **Database credentials have no built-in defaults anymore (#221, by Nam0101) β breaking for non-compose installs:** `DB_USER`, `DB_PASSWORD`, `DB_ADMIN_USER`, and `DB_ADMIN_PASSWORD` no longer fall back to the values that used to be printed in this repository, and the app refuses to start in production mode when any of them is missing, naming the missing variables. The shipped Docker Compose files already set all four explicitly, so compose installs are unaffected; anyone running the app another way (bare metal, LXC) must make sure all four are set in the environment. The root `env.example` now lists all four (it previously lacked `DB_USER` and `DB_ADMIN_USER`).+- **Database credentials have no built-in defaults anymore (#221, by Nam0101) β breaking for non-compose installs:** `DB_USER`, `DB_PASSWORD`, `DB_ADMIN_USER`, and `DB_ADMIN_PASSWORD` no longer fall back to the values that used to be printed in this repository, and the app refuses to start in production mode when any of them is missing, naming the missing variables. Both shipped Docker Compose files set all four explicitly (the Docker/ variant was missing the admin pair and relied on the removed defaults β it has been completed with the same values), so compose installs are unaffected; anyone running the app another way (bare metal, LXC) must make sure all four are set in the environment. The root `env.example` now lists all four (it previously lacked `DB_USER` and `DB_ADMIN_USER`).- **Mobile photo capture with client-side downscaling (#249, by canni):** a new "Take Photo" button opens the camera directly on mobile β the photo never enters the phone's gallery β and product photos are downscaled in the browser to at most 2048px (JPEG) before upload, so a multi-megabyte phone photo stops inflating storage and slowing uploads. Downscaling is EXIF-orientation-safe, renders transparency on white, never produces a larger file, passes animated GIFs through untouched, and falls back to the original file on any error. Applies to the add and edit photo inputs on the main and status pages.diff --git a/Docker/docker-compose.yml b/Docker/docker-compose.ymlindex b2e2485..c778831 100644--- a/Docker/docker-compose.yml+++ b/Docker/docker-compose.yml@@ -11,6 +11,8 @@ services:- DB_NAME=warranty_db- DB_USER=warranty_user- DB_PASSWORD=${DB_PASSWORD:-warranty_password}+ - DB_ADMIN_USER=warracker_admin+- DB_ADMIN_PASSWORD=${DB_ADMIN_PASSWORD:-change_this_password_in_production}- SMTP_HOST=smtp.email.com- SMTP_PORT=465