Isolation mode prevents your project from making external network requests, keeping all traffic local.
- Security testing: Test how your application behaves without external dependencies
- Offline development: Work without internet connection
- Performance testing: Eliminate network latency from tests
- Payment testing: Prevent accidental charges to real payment gateways
- API isolation: Ensure no external API calls during development
Enable isolation mode:
madock service:enable isolationDisable isolation mode:
madock service:disable isolationAfter enabling/disabling, rebuild your containers:
madock rebuildWhen isolation is enabled:
| Traffic Type | Status |
|---|---|
| External HTTP/HTTPS requests | ❌ Blocked |
| External API calls | ❌ Blocked |
| Package downloads (composer, npm) | ❌ Blocked |
| Internal container communication | ✅ Allowed |
| Local database connections | ✅ Allowed |
| Local Redis/Elasticsearch | ✅ Allowed |
- Run
madock composer installto ensure all dependencies are downloaded - Download any external resources your project needs
If your application shows errors after enabling isolation, it likely depends on external services. Check:
- Third-party API integrations
- External image/CDN URLs
- Payment gateway connections
- Analytics services
If you need to install new packages:
madock service:disable isolation
madock rebuild
madock composer require vendor/package
madock service:enable isolation
madock rebuild