From 2b24be2a9bc70deb9e4a5e99ecdbe44e4d2c1fcc Mon Sep 17 00:00:00 2001 From: p4u1 Date: Tue, 19 Dec 2023 15:47:48 +0100 Subject: [PATCH] refactor: move db_root_password to mariadb It is only used by mariadb and not by postgres Closes https://git.coopcloud.tech/coop-cloud/nextcloud/issues/34 --- compose.mariadb.yml | 5 +++++ compose.yml | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/compose.mariadb.yml b/compose.mariadb.yml index 361e390..113bd7c 100644 --- a/compose.mariadb.yml +++ b/compose.mariadb.yml @@ -42,5 +42,10 @@ configs: name: ${STACK_NAME}_my_cnf_${MY_CNF_VERSION} file: my-tune.cnf +secrets: + db_root_password: + external: true + name: ${STACK_NAME}_db_root_password_${SECRET_DB_ROOT_PASSWORD_VERSION} + volumes: mariadb: diff --git a/compose.yml b/compose.yml index 94efe38..5c74986 100644 --- a/compose.yml +++ b/compose.yml @@ -127,9 +127,6 @@ services: retries: 20 secrets: - db_root_password: - external: true - name: ${STACK_NAME}_db_root_password_${SECRET_DB_ROOT_PASSWORD_VERSION} db_password: external: true name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}