Implement Docker network management features: Add endpoints for retrieving and creating Docker networks, and update container management to support network configuration and port mapping updates. Enhance UI for network selection and port editing in the container management interface. Update database schema to include network-related fields.

https://github.com/usmannasir/cyberpanel/issues/923
This commit is contained in:
Master3395
2025-09-21 21:14:34 +02:00
parent cc07f12017
commit 09c9d67536
9 changed files with 1200 additions and 12 deletions

View File

@@ -16,3 +16,6 @@ class Containers(models.Model):
volumes = models.TextField(default="{}")
env = models.TextField(default="{}")
startOnReboot = models.IntegerField(default=0)
network = models.CharField(max_length=100, default='bridge')
network_mode = models.CharField(max_length=50, default='bridge')
extra_options = models.TextField(default="{}")