Add Docker Secrets Support for Database Password & fixed missing boto3 dependency in tests (#1657)

* Added overrider to use docker secrets for mariadb password

* typo in overrider file name

* typo in overrider mariadb-secrets

* typo in overriider mariadb-secrets

* Secrets enviroment variable override

* secrets need different enviroment variable name

* no - for env variables

* Updated deprecated MinIO Env Variables

* refactored to be more robust and better error handling

* temprary debugging changes

* Revert "temprary debugging changes"

This reverts commit d01931064d.

* Revert "refactored to be more robust and better error handling"

This reverts commit fe508668a8.

* Revert "Updated deprecated MinIO Env Variables"

This reverts commit 76e66b5262.

* manually added boto3 before running _create_bucket

* lint formatting
This commit is contained in:
DanielRadlAMR
2025-07-19 04:57:10 +02:00
committed by GitHub
parent d505c91eab
commit 8841d78c13
5 changed files with 23 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
services:
db:
environment:
MYSQL_ROOT_PASSWORD: !reset null
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db_password
healthcheck:
test: mysqladmin ping -h localhost --password="$(cat /run/secrets/db_password)"
secrets:
- db_password
secrets:
db_password:
file: ${DB_PASSWORD_SECRETS_FILE:?No db secret file set}

View File

@@ -10,7 +10,7 @@ services:
db:
image: mariadb:10.6
healthcheck:
test: mysqladmin ping -h localhost --password=${DB_PASSWORD}
test: mysqladmin ping -h localhost --password=${DB_PASSWORD:-123}
interval: 1s
retries: 20
restart: unless-stopped
@@ -20,7 +20,7 @@ services:
- --skip-character-set-client-handshake
- --skip-innodb-read-only-compressed # Temporary fix for MariaDB 10.6
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:?No db password set}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-123}
volumes:
- db-data:/var/lib/mysql