- update: docker compose to add custom networks
- add: get service endpoints by using consul dns
This commit is contained in:
@@ -83,7 +83,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// Register service with Consul
|
||||
let service_id = consul_registration::get_or_generate_service_id(env!("CARGO_PKG_NAME"));
|
||||
let version = env!("CARGO_PKG_VERSION").to_string();
|
||||
let tags = vec![version];
|
||||
let tags = vec![version, "tcp".to_string()];
|
||||
let mut meta = HashMap::new();
|
||||
consul_registration::register_service(
|
||||
&consul_url,
|
||||
|
||||
Reference in New Issue
Block a user