From f6615ca1b9e2921dd15fd03527c8279f6babea40 Mon Sep 17 00:00:00 2001 From: uccuz Date: Fri, 3 Jun 2022 16:57:06 +0800 Subject: [PATCH] feat: add service new member --- compose_viz/models/service.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/compose_viz/models/service.py b/compose_viz/models/service.py index 89740ba..dba1fd3 100644 --- a/compose_viz/models/service.py +++ b/compose_viz/models/service.py @@ -16,6 +16,12 @@ class Service: depends_on: List[str] = [], links: List[str] = [], extends: Optional[Extends] = None, + cgroup_parent: str = None, + container_name: str = None, + devices: List[str] = [], + env_file: List[str] = [], + expose: List[str] = [], + profiles: List[str] = [], ) -> None: self._name = name self._image = image @@ -25,6 +31,12 @@ class Service: self._depends_on = depends_on self._links = links self._extends = extends + self.cgroup_parent = cgroup_parent + self.container_name = container_name + self.devices = devices + self.env_file = env_file + self.expose = expose + self.profiles = profiles @property def name(self):