From ddb70ca908c946cb737de428c99b01672dc9d598 Mon Sep 17 00:00:00 2001 From: Arne Tarara Date: Fri, 16 Aug 2024 11:45:14 +0200 Subject: [PATCH] Connecting to nc instead of localhost as issues with docker proxy can occur --- energy-tests/compose-mariadb.yml | 2 +- energy-tests/compose-postgres.yml | 2 +- energy-tests/compose-sqlite.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/energy-tests/compose-mariadb.yml b/energy-tests/compose-mariadb.yml index 31e8c4af..a4209676 100644 --- a/energy-tests/compose-mariadb.yml +++ b/energy-tests/compose-mariadb.yml @@ -35,7 +35,7 @@ services: - MYSQL_USER=nextcloud - MYSQL_HOST=db healthcheck: - test: curl --fail --silent http://localhost + test: curl --fail --silent http://nc interval: "1h" # effectively turns repeated healthchecks during runtime off start_period: "60s" start_interval: "1s" diff --git a/energy-tests/compose-postgres.yml b/energy-tests/compose-postgres.yml index 7ad7312d..4523cead 100644 --- a/energy-tests/compose-postgres.yml +++ b/energy-tests/compose-postgres.yml @@ -33,7 +33,7 @@ services: - POSTGRES_USER=nextcloud - POSTGRES_HOST=db healthcheck: - test: curl --fail --silent http://localhost + test: curl --fail --silent http://nc interval: "1h" # effectively turns repeated healthchecks during runtime off start_period: "60s" start_interval: "1s" diff --git a/energy-tests/compose-sqlite.yml b/energy-tests/compose-sqlite.yml index 10bc359f..5a6b40b2 100644 --- a/energy-tests/compose-sqlite.yml +++ b/energy-tests/compose-sqlite.yml @@ -12,7 +12,7 @@ services: #volumes: # - nextcloud:/var/www/html # This is the usual way of using nextcloud in a container, but we do not need persistent data storage for benchmarking healthcheck: - test: curl --fail --silent http://localhost + test: curl --fail --silent http://nc interval: "1h" # effectively turns repeated healthchecks during runtime off start_period: "60s" start_interval: "1s"