How to add the configuration information in "docker service inspect {{.Spec.TaskTemplate.Networks.Aliases}}"?

Thank you very much for your attention.

I encountered such a problem, first let me tell you the background information of the problem:
My service runs on three servers (Docker Swarm networking), there are three Docker Swarm Services: swarm-service-01/swarm-service-02/swarm-service-03, and when docker service create, use -name prefix, such as test_swarm-service-01.

So the current docker service names on the three servers are test_swarm-service-01/test_swarm-service-02/test_swarm-service-03, and all three services are configured when creating --network test-network (overlay type network), currently both services can be accessed through http://swarm-service-[01 or 02]:5000 or http://test_swarm-service-[01 or 02]:5000 To access each other, the swarm-service-03 service can only be accessed through http://test_swarm-service-03:5000, and the name with the test_ prefix must be used. I checked the configuration of docker service inspect test_swarm-service-01/02 Information, {{.Spec.TaskTemplate.Networks.Aliases}} has an alias for swarm-service-01/02, but I searched a lot of documentation, tried a lot of commands, but I don’t know how to add {{.Spec.TaskTemplate.Networks.Aliases}} to test_swarm-service-03 {.Spec.TaskTemplate.Networks.Aliases}}=swarm-service-03, so ping swarm-service-03 and test_swarm-service-03 can be successful.

The above is my question, how to add and modify the configuration information in docker service inspect {{.Spec.TaskTemplate.Networks.Aliases}}?

I don’t know if my description is clearer. If there is any other configuration information I don’t have, I will add it.

$ docker service inspect test_swarm-service-01 | grep -A 6 Networks
“Networks”: [
{
“Target”: “41yu9oqwal7a9khrihd4hs45y”,
“Aliases”: [
“swarm-service-01”
]
}
$ docker service inspect test_swarm-service-02 | grep -A 6 Networks
“Networks”: [
{
“Target”: “41yu9oqwal7a9khrihd4hs45y”,
“Aliases”: [
“swarm-service-02”
]
}
$ docker service inspect test_swarm-service-03 | grep -A 3 Networks
“Networks”: [
{
“Target”: “41yu9oqwal7a9khrihd4hs45y”,
}