From eefc95494667e9f1c2e3a41174b9a9dca3e18885 Mon Sep 17 00:00:00 2001 From: Yuri Lima Date: Tue, 23 Jul 2024 15:43:08 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20IMPROVE:=20TLS=20Connections?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/web-config.yaml | 3 +++ docker-compose.yml | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 config/web-config.yaml diff --git a/config/web-config.yaml b/config/web-config.yaml new file mode 100644 index 0000000..051e4c2 --- /dev/null +++ b/config/web-config.yaml @@ -0,0 +1,3 @@ +tls_server_config: + cert_file: /etc/prometheus/certs/signed.crt + key_file: /etc/prometheus/certs/domain.key \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 57b8226..7c22e68 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,10 +41,16 @@ services: container_name: prometheus ports: - 9090:9090 - command: "--config.file=/etc/prometheus/prometheus.yaml" + command: " + --config.file=/etc/prometheus/prometheus.yaml \ + --web.config.file=/etc/prometheus/web-config.yaml \ + --web.external-url=https://prometheus.phx-erp.de + " volumes: # - '--web.enable-lifecycle' # Enable reload of configuration automatically without restart !!! - ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro # RO Read-only + - ./config/web-config.yaml:/etc/prometheus/web-config.yaml:ro # RO Read-only + - ./https_portal/data/prometheus.phx-erp.de/production:/etc/prometheus/certs - prometheus-data:/prometheus restart: unless-stopped networks: