- update: docker compose to add custom networks
- add: get service endpoints by using consul dns
This commit is contained in:
@@ -64,6 +64,12 @@ pub async fn register_service(
|
||||
"port": service_port,
|
||||
"tags": tags,
|
||||
"meta": meta,
|
||||
"tagged_addresses": {
|
||||
"lan": {
|
||||
"address": service_address.to_string(),
|
||||
"port": service_port,
|
||||
}
|
||||
},
|
||||
"check": {
|
||||
check_protocol: check_address,
|
||||
"interval": "10s",
|
||||
|
||||
Reference in New Issue
Block a user