Procházet zdrojové kódy

Use --read-only FS for metrics-related containers

It seems like it doesn't cause any issues for any of these services.
pull/838/head
Slavi Pantaleev před 5 roky
rodič
revize
df3dd1c824
3 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. +1
    -0
      roles/matrix-grafana/templates/systemd/matrix-grafana.service.j2
  2. +1
    -0
      roles/matrix-prometheus-node-exporter/templates/systemd/matrix-prometheus-node-exporter.service.j2
  3. +1
    -0
      roles/matrix-prometheus/templates/systemd/matrix-prometheus.service.j2

+ 1
- 0
roles/matrix-grafana/templates/systemd/matrix-grafana.service.j2 Zobrazit soubor

@@ -21,6 +21,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-grafana \
--log-driver=none \ --log-driver=none \
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \ --user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
--cap-drop=ALL \ --cap-drop=ALL \
--read-only \
--network={{ matrix_docker_network }} \ --network={{ matrix_docker_network }} \
{% if matrix_grafana_container_http_host_bind_port %} {% if matrix_grafana_container_http_host_bind_port %}
-p {{ matrix_grafana_container_http_host_bind_port }}:3000 \ -p {{ matrix_grafana_container_http_host_bind_port }}:3000 \


+ 1
- 0
roles/matrix-prometheus-node-exporter/templates/systemd/matrix-prometheus-node-exporter.service.j2 Zobrazit soubor

@@ -21,6 +21,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-prometheus-nod
--log-driver=none \ --log-driver=none \
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \ --user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
--cap-drop=ALL \ --cap-drop=ALL \
--read-only \
{% if matrix_prometheus_node_exporter_container_http_host_bind_port %} {% if matrix_prometheus_node_exporter_container_http_host_bind_port %}
-p {{ matrix_prometheus_node_exporter_container_http_host_bind_port }}:9100 \ -p {{ matrix_prometheus_node_exporter_container_http_host_bind_port }}:9100 \
{% endif %} {% endif %}


+ 1
- 0
roles/matrix-prometheus/templates/systemd/matrix-prometheus.service.j2 Zobrazit soubor

@@ -21,6 +21,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-prometheus \
--log-driver=none \ --log-driver=none \
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \ --user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
--cap-drop=ALL \ --cap-drop=ALL \
--read-only \
--network={{ matrix_docker_network }} \ --network={{ matrix_docker_network }} \
{% if matrix_prometheus_container_http_host_bind_port %} {% if matrix_prometheus_container_http_host_bind_port %}
-p {{ matrix_prometheus_container_http_host_bind_port }}:9090 \ -p {{ matrix_prometheus_container_http_host_bind_port }}:9090 \


Načítá se…
Zrušit
Uložit