Skip to content

Commit 0280e4e

Browse files
author
joe
committed
Composr v1.7.6
✨ Features: - Multi-host Docker container management - Real-time container monitoring and control - Docker Compose file editor with syntax highlighting - Environment file management - Image management across multiple hosts - Backup and restore functionality - Modern web interface with dark/light themes
1 parent 2fb387b commit 0280e4e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
All notable changes to Composr will be documented in this file.
33
## [1.7.6] - 2025-06-20
44
- **Fixed critical bug where container labels were lost during backup/restore**
5-
- **All original container labels (watchtower, traefik, custom, etc.) are now preserved**
6-
5+
- **All original container labels (watchtower, traefik, custom, etc.) are now
6+
- **changed default updates logic to include verion #
77
## [1.7.5] - 2025-06-20
88
- **Fixed critical bug where Docker hosts were not persisting across container restarts**
99
- **Fixed HostManager to properly use METADATA_DIR environment variable**

container_updates.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,14 @@ def __init__(self, compose_dir, extra_compose_dirs, metadata_dir='/app'):
2323
self.update_cache_file = os.path.join(metadata_dir, 'container_updates_cache.json')
2424
self.update_settings_file = os.path.join(metadata_dir, 'container_update_settings.json')
2525

26-
# Default update settings
2726
self.default_settings = {
2827
'auto_check_enabled': True,
2928
'check_interval_hours': 6,
3029
'notify_on_updates': True,
3130
'auto_update_enabled': False, # Safer default
3231
'auto_update_schedule': 'manual', # manual, daily, weekly
3332
'exclude_patterns': ['latest', 'dev', 'test'], # Skip these tags
34-
'include_patterns': ['stable', 'main', 'prod'], # Prioritize these
33+
'include_patterns': ['stable', 'main', 'prod', r'^\d+\.\d+\.\d+$'], # Add version regex
3534
'backup_before_update': True,
3635
'rollback_on_failure': True,
3736
'max_concurrent_updates': 3
@@ -275,13 +274,13 @@ def should_skip_image(self, image_info: Dict) -> bool:
275274

276275
# Check exclude patterns
277276
for pattern in self.settings['exclude_patterns']:
278-
if pattern in tag:
277+
if re.search(pattern, tag): # Changed from: if pattern in tag
279278
return True
280279

281280
# If include patterns are specified, only include matching ones
282281
if self.settings['include_patterns']:
283282
for pattern in self.settings['include_patterns']:
284-
if pattern in tag:
283+
if re.search(pattern, tag): # Changed from: if pattern in tag
285284
return False
286285
return True # Skip if doesn't match any include pattern
287286

0 commit comments

Comments
 (0)