mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-11-23 16:02:29 +00:00
fixtures: include service name in container name
This commit is contained in:
@@ -33,7 +33,7 @@ def containers(project="default", containers=[]):
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
'Id': container.get('id', generate_sha256()),
|
'Id': container.get('id', generate_sha256()),
|
||||||
'Name': ''.join(random.choice(string.ascii_lowercase) for i in range(16)),
|
'Name': container.get('service') + '_' + ''.join(random.choice(string.ascii_lowercase) for i in range(16)),
|
||||||
'Config': {
|
'Config': {
|
||||||
'Image': 'restic-volume-backup_backup',
|
'Image': 'restic-volume-backup_backup',
|
||||||
'Labels': {
|
'Labels': {
|
||||||
|
|||||||
Reference in New Issue
Block a user