From a9ec0b1c3eb14e4a4f3c7dd9bfaddc0b9770008a Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 23 Dec 2024 21:11:29 +0100 Subject: [PATCH] fix: update healthcheck and port configurations to use port 8080 --- app/Models/Server.php | 4 ++-- docker-compose.prod.yml | 2 +- docker-compose.windows.yml | 4 ++-- other/nightly/docker-compose.prod.yml | 2 +- other/nightly/docker-compose.windows.yml | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Models/Server.php b/app/Models/Server.php index 767327b8e..8d11e23a9 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -347,7 +347,7 @@ class Server extends BaseModel 'loadBalancer' => [ 'servers' => [ 0 => [ - 'url' => 'http://coolify:80', + 'url' => 'http://coolify:8080', ], ], ], @@ -445,7 +445,7 @@ $schema://$host { handle /terminal/ws { reverse_proxy coolify-realtime:6002 } - reverse_proxy coolify:80 + reverse_proxy coolify:8080 }"; $base64 = base64_encode($caddy_file); instant_remote_process([ diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index cb8f6b326..459b93ac6 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -58,7 +58,7 @@ services: expose: - "${APP_PORT:-8000}" healthcheck: - test: curl --fail http://127.0.0.1:80/api/health || exit 1 + test: curl --fail http://127.0.0.1:8080/api/health || exit 1 interval: 5s retries: 10 timeout: 2s diff --git a/docker-compose.windows.yml b/docker-compose.windows.yml index f2b03d209..1e2601b34 100644 --- a/docker-compose.windows.yml +++ b/docker-compose.windows.yml @@ -48,11 +48,11 @@ services: - SSH_MUX_ENABLED=false - IS_WINDOWS_DOCKER_DESKTOP=true ports: - - "${APP_PORT:-8000}:80" + - "${APP_PORT:-8000}:8080" expose: - "${APP_PORT:-8000}" healthcheck: - test: curl --fail http://localhost:80/api/health || exit 1 + test: curl --fail http://localhost:8080/api/health || exit 1 interval: 5s retries: 10 timeout: 2s diff --git a/other/nightly/docker-compose.prod.yml b/other/nightly/docker-compose.prod.yml index cb8f6b326..459b93ac6 100644 --- a/other/nightly/docker-compose.prod.yml +++ b/other/nightly/docker-compose.prod.yml @@ -58,7 +58,7 @@ services: expose: - "${APP_PORT:-8000}" healthcheck: - test: curl --fail http://127.0.0.1:80/api/health || exit 1 + test: curl --fail http://127.0.0.1:8080/api/health || exit 1 interval: 5s retries: 10 timeout: 2s diff --git a/other/nightly/docker-compose.windows.yml b/other/nightly/docker-compose.windows.yml index ef2de82e9..e19ec961f 100644 --- a/other/nightly/docker-compose.windows.yml +++ b/other/nightly/docker-compose.windows.yml @@ -48,11 +48,11 @@ services: - SSH_MUX_ENABLED=false - IS_WINDOWS_DOCKER_DESKTOP=true ports: - - "${APP_PORT:-8000}:80" + - "${APP_PORT:-8000}:8080" expose: - "${APP_PORT:-8000}" healthcheck: - test: curl --fail http://localhost:80/api/health || exit 1 + test: curl --fail http://localhost:8080/api/health || exit 1 interval: 5s retries: 10 timeout: 2s