This repository has been archived on 2024-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
docker-discover/test.json

65 lines
1.8 KiB
JSON

{
"services": [
{
"Spec": {"Name": "foo"},
"Endpoint": {
"Ports": [
{
"PublishedPort": 10001,
"Protocol": "tcp"
}
]
}
}, {
"Spec": {"Name": "bar_main"},
"Endpoint": {
"Ports": [
{
"PublishedPort": 10003,
"Protocol": "tcp"
}
]
}
}, {
"Spec": {"Name": "bar_foo"},
"Endpoint": {
"Ports": [
{
"PublishedPort": 10003,
"Protocol": "udp"
}
]
}
}, {
"Spec": {"Name": "baz"},
"Endpoint": {}
}
],
"nodes": [
{
"Description": {"Hostname": "mgr1"},
"ManagerStatus": {"Addr": "10.0.0.1:2377"},
"Spec": {"Role": "manager"},
"Status": {"Addr": "0.0.0.0"}
}, {
"Description": {"Hostname": "mgr2"},
"ManagerStatus": {"Addr": "10.0.0.2:2377"},
"Spec": {"Role": "manager"},
"Status": {"Addr": "10.0.0.2"}
}, {
"Description": {"Hostname": "worker1"},
"ManagerStatus": {"Addr": "10.0.0.2:2377"},
"Spec": {"Role": "worker"},
"Status": {"Addr": "10.0.1.1"}
}, {
"Description": {"Hostname": "worker2"},
"ManagerStatus": {"Addr": "10.0.0.2:2377"},
"Spec": {"Role": "worker"},
"Status": {"Addr": "10.0.1.2"}
}, {
"Description": {"Hostname": "worker3"},
"Status": {"Addr": "10.0.1.3"}
}
]
}