Some more changes for Docker

This commit is contained in:
Fabio Herzig
2026-07-25 22:52:10 +02:00
parent f10ff26b30
commit 1e10ed4de8
2 changed files with 13 additions and 12 deletions
+10 -9
View File
@@ -51,14 +51,15 @@ CREATE TABLE `prefix-placeholder_einmal_links` (
-- --
-- Trigger `prefix-placeholder_einmal_links` -- Trigger `prefix-placeholder_einmal_links`
-- --
DELIMITER $$
CREATE TRIGGER `before_insert_login_tokens` BEFORE INSERT ON `prefix-placeholder_einmal_links` FOR EACH ROW BEGIN CREATE TRIGGER `before_insert_login_tokens`
IF NEW.url IS NULL THEN BEFORE INSERT ON `prefix-placeholder_einmal_links`
SET NEW.url = HEX(RANDOM_BYTES(32)); FOR EACH ROW
END IF; BEGIN
END IF NEW.url IS NULL THEN
$$ SET NEW.url = HEX(RANDOM_BYTES(32));
DELIMITER ; END IF;
END;
-- -------------------------------------------------------- -- --------------------------------------------------------
@@ -206,7 +207,7 @@ CREATE TABLE `prefix-placeholder_verbuchte_startgebueren` (
`preis` float DEFAULT NULL, `preis` float DEFAULT NULL,
`user_id` int(11) NOT NULL, `user_id` int(11) NOT NULL,
`item_ids` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`item_ids`)), `item_ids` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`item_ids`)),
`used_verein_konten` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '\'{}\'', `used_verein_konten` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`order_status` int(11) NOT NULL DEFAULT 0, `order_status` int(11) NOT NULL DEFAULT 0,
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(), `timestamp` timestamp NOT NULL DEFAULT current_timestamp(),
`edited_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() `edited_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
+3 -3
View File
@@ -16,7 +16,7 @@ $envMappings = [
'/REDDIS_HOST=localhost/' => 'REDDIS_HOST=redis', '/REDDIS_HOST=localhost/' => 'REDDIS_HOST=redis',
'/REDDIS_HOST=YOUR_REDDIS_IP.*/' => 'REDDIS_HOST=redis', '/REDDIS_HOST=YOUR_REDDIS_IP.*/' => 'REDDIS_HOST=redis',
'/REDDIS_PORT=YOUR_REDDIS_PORT.*/' => 'REDDIS_PORT=6379', '/REDDIS_PORT=YOUR_REDDIS_PORT.*/' => 'REDDIS_PORT=6379',
'/YOUR_REDDIS_PASSWORD/' => base64_encode(random_bytes(64)), '/YOUR_REDDIS_PASSWORD/' => '"' . base64_encode(random_bytes(64)) . '"',
] ]
], ],
'env.db' => [ 'env.db' => [
@@ -24,7 +24,7 @@ $envMappings = [
'replacements' => [ 'replacements' => [
'/MYSQL_HOST=localhost/' => 'MYSQL_HOST=mariadb', '/MYSQL_HOST=localhost/' => 'MYSQL_HOST=mariadb',
'/MYSQL_HOST=127\.0\.0\.1/' => 'MYSQL_HOST=mariadb', '/MYSQL_HOST=127\.0\.0\.1/' => 'MYSQL_HOST=mariadb',
'/YOUR_PASSWORD_FOR_ROOT/' => base64_encode(random_bytes(64)), '/YOUR_PASSWORD_FOR_ROOT/' => '"' . base64_encode(random_bytes(64)) . '"',
'/YOUR_DATABASE_NAME/' => 'devdb_', '/YOUR_DATABASE_NAME/' => 'devdb_',
] ]
], ],
@@ -37,7 +37,7 @@ $envMappings = [
'env.pw-encryption-key' => [ 'env.pw-encryption-key' => [
'example' => 'env.pw-encryption-key.example', 'example' => 'env.pw-encryption-key.example',
'replacements' => [ 'replacements' => [
'/YOUR_CUSTOM_PASSWORD_ENCRYPTION_KEY/' => base64_encode(random_bytes(64)), '/YOUR_CUSTOM_PASSWORD_ENCRYPTION_KEY/' => '"' . base64_encode(random_bytes(64)) . '"',
] ]
], ],
'env.wk-id' => [ 'env.wk-id' => [