From 40d982419005132921ecc7766451c1c0a7650175 Mon Sep 17 00:00:00 2001 From: Krzysztof Adamski Date: Wed, 6 Sep 2023 18:53:42 +0200 Subject: [PATCH 1/2] Describe "exposed_port" Config for Healthcheck --- _docs/configuration.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/_docs/configuration.md b/_docs/configuration.md index 220aa68..1292c2e 100644 --- a/_docs/configuration.md +++ b/_docs/configuration.md @@ -688,6 +688,17 @@ The healthcheck allows for an optional `max_attempts` setting, which will attemp The HTTP health checks assume that the `curl` command is available inside the container. If that's not the case, use the healthcheck's `cmd` option to specify an alternative check that the container supports. +## Healthcheck and multiple apps + +Healthcheck is binding containers port to server's port. When running multiple applications on the same server and deploying them in parallel you should specify different port for each application. + +```yaml +healthcheck: + exposed_port: 4000 # 3999 is the default one +``` + +This allows you to run multiple applications on the same server sharing the same Traefik instance and port + ## Using rolling deployments When deploying to large numbers of hosts, you might prefer not to restart your services on every host at the same time. From ffad57a283a98884896b28350ad16f6a86b21d82 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 18 Sep 2023 08:23:08 -0700 Subject: [PATCH 2/2] Update configuration.md --- _docs/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_docs/configuration.md b/_docs/configuration.md index 1292c2e..ae8f69e 100644 --- a/_docs/configuration.md +++ b/_docs/configuration.md @@ -688,7 +688,7 @@ The healthcheck allows for an optional `max_attempts` setting, which will attemp The HTTP health checks assume that the `curl` command is available inside the container. If that's not the case, use the healthcheck's `cmd` option to specify an alternative check that the container supports. -## Healthcheck and multiple apps +## Ung a custom port for the healthcheck with multiple apps Healthcheck is binding containers port to server's port. When running multiple applications on the same server and deploying them in parallel you should specify different port for each application.