17 lines
418 B
Plaintext
17 lines
418 B
Plaintext
|
service {
|
||
|
name = "{{ postgres_consul_service_name }}"
|
||
|
id = "{{ postgres_consul_service_name }}"
|
||
|
port = 5432
|
||
|
tags = ["{{postgres_consul_tag}}"]
|
||
|
check
|
||
|
{
|
||
|
id = "check-{{ postgres_consul_service_name }}",
|
||
|
name = "{{ postgres_consul_service_name }} status check",
|
||
|
service_id = "{{ postgres_consul_service_name }}",
|
||
|
tcp = "localhost:5432",
|
||
|
interval = "5s",
|
||
|
timeout = "5s"
|
||
|
}
|
||
|
}
|
||
|
|