- update: grab version info to register from the cargo package

- update: docker volume to persist the registered service IDs
- update: consul service id function to store the service id in the services folder
This commit is contained in:
2025-01-29 14:25:53 -05:00
parent b5e16f0bef
commit 292a298205
9 changed files with 32 additions and 9 deletions

View File

@@ -37,7 +37,8 @@ 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 tags = vec!["version-1.0".to_string()];
let version = env!("CARGO_PKG_VERSION").to_string();
let tags = vec![version];
let meta = HashMap::new();
consul_registration::register_service(
&consul_url,