fig-info
v0.0.3
Published
Spits out useful JSON on currently running containers
Downloads
14
Readme
Prints info on running contianers defined in a fig project. Useful in conjunction with something like mustache-render to build config files for HAProxy (for use with haconfig).
Usage
fig-info /path/to/fig.yml
Sample output
{
"fpm": {
"containers": [
{
"name": "wiki_fpm_4",
"ip_address": "172.17.0.15"
},
{
"name": "wiki_fpm_5",
"ip_address": "172.17.0.17"
}
]
},
"nginx": {
"containers": [
{
"name": "wiki_nginx_1",
"ip_address": "172.17.0.19"
}
]
}
}