Module Description
SAAS Subscription Trial - Docker Extension. Adds Docker image configuration to trial packages, enabling trial subscriptions to be deployed as Docker containers.
Dependencies
sadeem_subscription_trialsadeem_saas_docker
Extension
This module extends the trial package with Docker-specific fields. When the subscription type is set to docker, the trial system uses the Docker image to auto-select the best Portainer environment and deploy a container.
Additional Trial Package Fields
- Subscription Type - Extended with
Dockeroption - Docker Image - Portainer image for trial subscriptions (required when type is
docker) - Docker Worker Count - Number of Odoo workers (default: 0 = threaded mode)
- Without Demo - Create database without demo data (default: True)
- Limit Time CPU - Max CPU time per request in seconds (default: 60)
- Limit Time Real - Max real time per request in seconds (default: 120)
How It Works
- Trial package is configured with type
Dockerand a Docker image - Customer submits trial form
- System creates trial request and subscription
- The Docker image's
get_best_environment()selects the optimal Portainer environment - All environment-related fields (IP, ports, domain, Cloudflare, Nginx) are auto-populated
- Subscription is confirmed and a Docker stack is created in Portainer