Commit Graph

14 Commits

Author SHA1 Message Date
dillard 31290517ba Add a lightweight schema migration runner, fix missing PHPMailer in prod image
docker-entrypoint-initdb.d only applies db/init.sql, and only on a brand new
volume - existing installs never got db/migrations/*.sql applied unless
someone ran them by hand. This bit twice this session (qr-oss's own init.sql
was missing a migration, and qr-vip's live DB was two migrations behind after
a code deploy). scripts/migrate.php now runs automatically on every container
start via a new entrypoint wrapper, applying any not-yet-recorded migration -
safe to run repeatedly since every migration file already checks
information_schema before altering.

Also caught in the process: Dockerfile.fpm (the production image) never
installed phpmailer/phpmailer, unlike the dev Dockerfile - meaning
self-registration's password email has been silently fatal-erroring in
production since the nginx+php-fpm switch.
2026-07-15 01:19:47 +02:00
Giandonato Inverso 90a7b2890b updated documentation 2023-10-16 22:24:15 +02:00
Giandonato Inverso 68a2b9f7f3 Refactoring docker image building, NEW: added docker compose support
Signed-off-by: giandonato.inverso@edempg.it <giandonato.inverso@studenti.unimi.it>
2023-10-16 19:49:29 +02:00
Giandonato Inverso c87a99a067 Update Dockerfile 2023-01-25 18:51:10 +01:00
giandonato.inverso@edempg.it 6d1c3ac7c4 new version dockerfile 2022-09-28 16:23:44 +02:00
giandonato.inverso@edempg.it e2d9aad91f new version dockerfile 2022-09-28 16:22:18 +02:00
0xRenegade 4da9be3e3e update docker-compose.yml for database prefix option 2022-09-24 12:19:40 -05:00
Giandonato Inverso 418215cd23 Update docker-compose.yml 2022-09-24 03:23:41 +02:00
nirpt 2aa867aa2a Docker build with app version added. 2022-08-29 12:32:20 +02:00
nirpt 9cbf68a99e Merge remote-tracking branch 'origin/master'
# Conflicts:
#	docker/README.md
2022-08-28 13:22:12 +02:00
Giandonato Inverso dfaee77d86 Update README.md 2022-08-28 12:33:14 +02:00
nirpt 97da7f0d4f Minor refactor and cleanup 2022-08-28 11:29:20 +02:00
Giandonato Inverso 4dd7f9ab25 configuration file modification, docker environment variable support 2022-08-28 11:24:32 +02:00
nirpt 1194259e6e docker support added 2022-08-28 10:24:07 +02:00