Environments
1. Environment Overview
Portainer environments represent Docker hosts (standalone Docker instances) managed through a Portainer server. Each environment tracks container capacity, resource usage, and infrastructure configuration.
Fields
- Name - Environment display name (required, tracked)
- IP - Environment IP address (required, tracked)
- Portainer - Associated Portainer server (required)
- Portainer Environment ID - ID on the Portainer server (required)
- Root Server - Associated root server
- Environment Type - Docker type (default:
standalone) - Next Port - Last used port for allocating new services (default: 10000, tracked)
- Active - Archive toggle (default: True)
- Country - Location country
- State - Location state/province
Capacity Tracking
- Max Running Container Count - Docker capacity limit
- Container Run - Currently running containers
- Container Stop - Stopped containers
- Container Pause - Paused containers
- Container Total - Total container count
- Available Container Capacity - Computed: max - running
- State - Capacity status:
NormalorOver Capacity(computed)
Resources
- CPU Cores - Number of CPU cores
- Total RAM - Total memory in MB
Infrastructure Configuration
- Nginx Proxy Server - Default Nginx connector for subscriptions (required, tracked)
- Nginx Default Cert ID - Default SSL certificate ID (tracked)
- Domain for New Subscriptions - Base domain for auto-generated subdomains (tracked)
- Subdomain Start - Prefix for auto-created subscription subdomains (tracked)
- Cloudflare DNS - Enable Cloudflare DNS management (tracked)
- Cloudflare Account - Cloudflare connector (tracked)
- Cloudflare Domain Zone ID - Zone ID for DNS operations (tracked)
- Cloudflare Create Record - Auto-create DNS records (tracked)
- Cloudflare Proxied Record - Proxy DNS records through Cloudflare (tracked)
- External PostgreSQL - Use external PostgreSQL server (default: False, tracked)
- PostgreSQL Server - External database server reference
2. Actions
| Action | Description |
|---|---|
| Get Environment Info | Refreshes container counts and resource data from Portainer API |
Capacity State
The environment state is automatically computed. When Available Container Capacity drops to 0 or below, the state changes to Over Capacity, indicating the environment cannot accept new subscriptions.