Protect Critical Stacks
🔒 Security & Troubleshooting
·
Updated 4 days ago
Protect Critical Stacks
To keep important compose projects (such as a database or monitoring) from being stopped by accident, list them in the profile:
## in the profile context/nas/<slug>/profile.md
- critical_compose_projects: nextcloud, postgres
After that, /compose-down refuses to stop those projects. To do it deliberately, set the environment variable:
SM_CONFIRM_CRITICAL=yes /compose-down nextcloud
The confirmation makes the intent visible and guards against accidental runs — a simple but effective safeguard for business-critical services.