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: