👌 IMPROVE: TLS Connections

This commit is contained in:
2024-07-23 15:43:08 +00:00
parent ba02008e7c
commit eefc954946
2 changed files with 10 additions and 1 deletions

3
config/web-config.yaml Normal file
View File

@@ -0,0 +1,3 @@
tls_server_config:
cert_file: /etc/prometheus/certs/signed.crt
key_file: /etc/prometheus/certs/domain.key

View File

@@ -41,10 +41,16 @@ services:
container_name: prometheus container_name: prometheus
ports: ports:
- 9090:9090 - 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: volumes:
# - '--web.enable-lifecycle' # Enable reload of configuration automatically without restart !!! # - '--web.enable-lifecycle' # Enable reload of configuration automatically without restart !!!
- ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro # RO Read-only - ./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 - prometheus-data:/prometheus
restart: unless-stopped restart: unless-stopped
networks: networks: