Backend Sandbox Configuration
The backend provisions isolated sandboxes for executing user code. These variables define the template and lifecycle policies.
SANDBOX_TEMPLATE_ID
- Open the sandbox provisioning portal or service you use for backend execution (internal tool, provider dashboard, etc.).
- Locate the template/image you want the stack to spawn (for example “ii-backend-dev”).
- Copy its unique identifier and place it in
docker/.stack.envasSANDBOX_TEMPLATE_ID. - If you do not know which template to use, ask the infrastructure team for the default dev template.
TIME_TIL_CLEAN_UP
- Specifies how long (in seconds) an idle sandbox lives before auto-shutdown.
- Choose a value that balances cost and usability. Example:
900(15 minutes) keeps sessions alive long enough for debugging without leaving unused containers running.
Validation Checklist
- Boot the stack and trigger a feature that launches a sandbox.
- In the sandbox provider dashboard, confirm new instances use the template ID you configured.
- Observe the clean-up timer to verify idle sandboxes terminate close to the configured interval.