Jakub Sokołowski b187f16ad9
refactor to use Docker Compose
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-03-25 19:39:43 +01:00

20 lines
728 B
YAML

---
- name: Create Consul service definition
include_role: name=consul-service
vars:
consul_config_name: '{{ geth_expo_cont_name }}'
consul_services:
# Prometheus config expects this service name
- name: 'geth-exporter'
id: '{{ geth_expo_cont_name }}'
port: '{{ geth_expo_cont_port }}'
address: '{{ ansible_local.tinc.vpn_ip }}'
tags: ['{{ geth_expo_cont_name }}', 'metrics', 'geth']
meta:
container: '{{ geth_expo_source_cont_name | mandatory }}'
checks:
- id: '{{ geth_expo_cont_name }}-health'
name: 'geth-exporter healthcheck'
type: http
http: 'http://localhost:{{ geth_expo_cont_port }}/health'