def generate_dot(dc):
    """
    Generates a dot format graph of docker-compose depends_on between services

    :param dict dc: Docker comppose configuration loaded as a python dict
    :rtype: string
    """
    lines = []
    lines.append("digraph docker {")
    for service_name, service in dc["services"].items():
        lines.append(
            f'    "{service_name}" [label="{service_name}",shape=box,fillcolor="paleturquoise",style="filled,rounded"];'
        )
        for dep in service.get("depends_on", []):
            lines.append(f'    "{service_name}" -> "{dep}" [label = "depends_on"]')
    lines.append("}")
    return "\n".join(lines)