fig-info

0.0.3 • Public • Published

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"
            }
        ]
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i fig-info

Weekly Downloads

4

Version

0.0.3

License

none

Last publish

Collaborators

  • caolan