Don't forget the root password

This commit is contained in:
Luke Murphy 2020-06-23 11:39:51 +02:00
parent 2f234ff5d4
commit 13a1da8760
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,9 @@ secrets:
db_passwd:
name: ${STACK_NAME}_db_passwd_${DB_PASSWD_VERSION}
external: true
db_root_passwd:
name: ${STACK_NAME}_db_passwd_${DB_ROOT_PASSWD_VERSION}
external: true
internal_token:
name: ${STACK_NAME}_internal_token_${INTERNAL_TOKEN_VERSION}
external: true

View File

@ -2,6 +2,7 @@
create-secrets () {
pwgen -n 32 1 | docker secret create "${STACK_NAME}_db_passwd_${DB_PASSWD_VERSION}" -
pwgen -n 32 1 | docker secret create "${STACK_NAME}_db_root_passwd_${DB_ROOT_PASSWD_VERSION}" -
pwgen -n 105 1 | docker secret create "${STACK_NAME}_internal_token_${INTERNAL_TOKEN_VERSION}" -
pwgen -n 43 1 | docker secret create "${STACK_NAME}_jwt_secret_${JWT_SECRET_VERSION}" -
pwgen -n 64 1 | docker secret create "${STACK_NAME}_secret_key_${SECRET_KEY_VERSION}" -