mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-12-13 17:34:57 +00:00
fix: use root password to backup databases
This commit is contained in:
committed by
Silthus
parent
e08f96e638
commit
1f4d81e319
@@ -16,8 +16,8 @@ class MariadbContainer(Container):
|
|||||||
"""dict: get credentials for the service"""
|
"""dict: get credentials for the service"""
|
||||||
return {
|
return {
|
||||||
'host': self.hostname,
|
'host': self.hostname,
|
||||||
'username': self.get_config_env('MYSQL_USER'),
|
'username': 'root',
|
||||||
'password': self.get_config_env('MYSQL_PASSWORD'),
|
'password': self.get_config_env('MYSQL_ROOT_PASSWORD'),
|
||||||
'port': "3306",
|
'port': "3306",
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,8 +91,8 @@ class MysqlContainer(Container):
|
|||||||
"""dict: get credentials for the service"""
|
"""dict: get credentials for the service"""
|
||||||
return {
|
return {
|
||||||
'host': self.hostname,
|
'host': self.hostname,
|
||||||
'username': self.get_config_env('MYSQL_USER'),
|
'username': 'root',
|
||||||
'password': self.get_config_env('MYSQL_PASSWORD'),
|
'password': self.get_config_env('MYSQL_ROOT_PASSWORD'),
|
||||||
'port': "3306",
|
'port': "3306",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user