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

102 lines
3.0 KiB
JSON

{
"services": [
{
"Spec": {"Name": "foo"},
"Endpoint": {
"Ports": [
{
"PublishedPort": 10001,
"TargetPort": 80,
"Protocol": "tcp"
}, {
"PublishedPort": 10002,
"TargetPort": 3306,
"Protocol": "tcp"
}
]
}
}, {
"Spec": {"Name": "foo_bar"},
"Endpoint": {
"Ports": [
{
"PublishedPort": 10003,
"TargetPort": 443,
"Protocol": "tcp"
}
]
}
}, {
"Spec": {"Name": "bar_main"},
"Endpoint": {
"Ports": [
{
"PublishedPort": 10004,
"TargetPort": 3584,
"Protocol": "tcp"
}, {
"PublishedPort": 10005,
"TargetPort": 443,
"Protocol": "tcp"
}
]
}
}, {
"Spec": {"Name": "bar_baz"},
"Endpoint": {
"Ports": [
{
"PublishedPort": 10006,
"TargetPort": 101,
"Protocol": "tcp"
}, {
"PublishedPort": 10007,
"TargetPort": 80,
"Protocol": "tcp"
}
]
}
}, {
"Spec": {"Name": "bar_foo"},
"Endpoint": {
"Ports": [
{
"PublishedPort": 10001,
"TargetPort": 100,
"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"}
}
]
}