compose-viz/compose_viz/service.py

14 lines
484 B
Python
Raw Normal View History

2022-05-07 18:42:14 +02:00
from typing import List
class Service:
def __init__(self, name: str, image: str, ports: List[str] = [], networks: List[str] = [], volumes: List[str] = [], depends_on: List[str] = [], links: List[str] = [], extends: List[str] = []) -> None:
self.name = name
self.image = image
self.ports = ports
self.networks = networks
self.volumes = volumes
self.depends_on = depends_on
self.links = links
self.extends = extends