()
return jsonify(projects=projects, active=active)
List docker compose projects
List docker compose projects
List docker compose projects
def list_projects():
    """
    List docker compose projects
    """
    load_projects()
    active = [container['Labels']['com.docker.compose.project'] \
        if 'com.docker.compose.project' in container['Labels'] \
        else [] for container in containers()]
    return jsonify(projects=projects, active=active)
def list_projects ( ) : load_projects ( ) active = [ container [ 'Labels' ] [ 'com.docker.compose.project' ] if 'com.docker.compose.project' in container [ 'Labels' ] else [ ] for container in containers ( ) ] return jsonify ( projects = projects , active = active )