From 7cd8e4f4b3cf8d09ab701572e761084feeab038b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=C5=BEbeta=20Hajn=C3=A1?= <xhajna@fi.muni.cz> Date: Mon, 22 May 2023 19:20:26 +0200 Subject: [PATCH] fix(docker): not using docker internal host --- compose.yaml | 4 ++++ prometheus.yml | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/compose.yaml b/compose.yaml index 0c1dd8b..e70e897 100644 --- a/compose.yaml +++ b/compose.yaml @@ -3,6 +3,7 @@ services: build: context: . target: pa165-formula-team-management-application + container_name: application ports: - "8081:8081" environment: @@ -12,6 +13,7 @@ services: build: context: . target: pa165-formula-team-management-core + container_name: core ports: - "8090:8090" environment: @@ -21,6 +23,7 @@ services: build: context: . target: pa165-formula-team-management-notification + container_name: notification ports: - "8083:8083" @@ -28,6 +31,7 @@ services: build: context: . target: pa165-formula-team-management-visualization + container_name: visualization volumes: - ./visualization/output-data:/output-data ports: diff --git a/prometheus.yml b/prometheus.yml index 58b2dcf..aedec20 100644 --- a/prometheus.yml +++ b/prometheus.yml @@ -11,7 +11,7 @@ scrape_configs: metrics_path: /actuator/prometheus static_configs: - targets: - - host.docker.internal:8090 - - host.docker.internal:8081 - - host.docker.internal:8082 - - host.docker.internal:8083 \ No newline at end of file + - core:8090 + - application:8081 + - visualization:8082 + - notification:8083 \ No newline at end of file -- GitLab