Docker Stages
1. Stage Overview
Docker stages extend the base stage model with container-specific fields. Each stage gets its own Docker stack, independent from the parent subscription.
Additional Fields
- Docker Image - Related from subscription (readonly)
- Docker Environment - Related from subscription (readonly)
- Stack ID - Stage-specific Portainer stack ID
- Code Server Stack ID - Stage-specific code server stack ID
- Log Level - Stage log level (default: debug)
- User Addons - Stage-specific addons path
- Server Wide Modules - Stage-specific modules
- Update Module - Modules to update on start
- Auto Install Modules - Modules to install on start
- Docker Log - Stage container logs
- Docker Command / Output - Command execution in stage container
2. Stage Creation Flow
- Backs up the parent subscription's database
- Creates a new Docker stack for the stage with its own ports
- Restores the backup to the new stage database
- Copies parent subscription addons to the stage directory
- Stage is now independent and can be configured separately
3. Stage Actions
| Action | Description |
|---|---|
| Update Stack | Apply configuration changes and restart the stage container |
| Copy Addons | Copy the parent subscription's custom addons to the stage |
| Backup/Restore Database | Manage the stage database independently |