Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
added docker-compose version to /health endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
francescou committed Nov 4, 2017
1 parent 4612863 commit 8ea5bf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import logging
from os.path import normpath
from compose import __version__ as compose_version
from compose.container import Container
from compose.cli.utils import get_version_info
from compose.cli.command import get_project as compose_get_project, get_config_path_from_options, get_config_from_options
Expand Down Expand Up @@ -78,7 +79,7 @@ def info():
docker info
"""
docker_info = client().info()
return dict(info=docker_info['ServerVersion'], name=docker_info['Name'])
return dict(compose=compose_version,info=docker_info['ServerVersion'], name=docker_info['Name'])

def client():
"""
Expand Down

0 comments on commit 8ea5bf5

Please sign in to comment.