mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-02 21:33:07 +00:00
67 lines
1.7 KiB
Plaintext
67 lines
1.7 KiB
Plaintext
services:
|
|
prometheus:
|
|
image: prom/prometheus:v3.0.1
|
|
{% if prometheus.platform %} platform: {{ prometheus.platform }}
|
|
{% endif %} command:
|
|
- --config.file=/etc/prometheus/prometheus.yml
|
|
- --storage.tsdb.retention.time=7d
|
|
- --web.enable-otlp-receiver
|
|
- --enable-feature=otlp-write-receiver
|
|
volumes:
|
|
- ./stack/monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:z
|
|
ports:
|
|
- {{ prometheus.host_port }}
|
|
restart: on-failure
|
|
|
|
{% for node in validators %}
|
|
{{ node.name }}:
|
|
image: {{ node.image }}
|
|
{% if node.platform %} platform: {{ node.platform }}
|
|
{% endif %} entrypoint: {{ node.entrypoint }}
|
|
volumes:
|
|
{% for volume in node.volumes %}
|
|
- {{ volume }}
|
|
{% endfor %}
|
|
{% if node.extra_hosts | length > 0 %}
|
|
extra_hosts:
|
|
{% for host in node.extra_hosts %}
|
|
- {{ host }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
ports:
|
|
{% for port in node.ports %}
|
|
- {{ port }}
|
|
{% endfor %}
|
|
environment:
|
|
{% for env in node.environment %}
|
|
{{ env.key }}: "{{ env.value }}"
|
|
{% endfor %}
|
|
restart: on-failure
|
|
|
|
{% endfor %}{% for node in executors %}
|
|
{{ node.name }}:
|
|
image: {{ node.image }}
|
|
{% if node.platform %} platform: {{ node.platform }}
|
|
{% endif %} entrypoint: {{ node.entrypoint }}
|
|
volumes:
|
|
{% for volume in node.volumes %}
|
|
- {{ volume }}
|
|
{% endfor %}
|
|
{% if node.extra_hosts | length > 0 %}
|
|
extra_hosts:
|
|
{% for host in node.extra_hosts %}
|
|
- {{ host }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
ports:
|
|
{% for port in node.ports %}
|
|
- {{ port }}
|
|
{% endfor %}
|
|
environment:
|
|
{% for env in node.environment %}
|
|
{{ env.key }}: "{{ env.value }}"
|
|
{% endfor %}
|
|
restart: on-failure
|
|
|
|
{% endfor %}
|