mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 05:45:59 +01:00
Docker app beta
This commit is contained in:
17
dockerManager/models.py
Normal file
17
dockerManager/models.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models
|
||||
from loginSystem.models import Administrator
|
||||
|
||||
# Create your models here.
|
||||
class Containers(models.Model):
|
||||
name = models.CharField(max_length=50,unique=True)
|
||||
cid = models.CharField(max_length=64, default='')
|
||||
admin = models.ForeignKey(Administrator)
|
||||
image = models.CharField(max_length=50, default='unknown')
|
||||
tag = models.CharField(max_length=50, default='unknown')
|
||||
memory = models.IntegerField(default=0)
|
||||
ports = models.TextField(default="{}")
|
||||
env = models.TextField(default="{}")
|
||||
startOnReboot = models.IntegerField(default=0)
|
||||
Reference in New Issue
Block a user