Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

add hc for coolify

Andras Bacsai2fb8d928e598
diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml
index f584239ea5..bb997ca1f9 100644
--- a/docker-compose.prod.yml
+++ b/docker-compose.prod.yml
@@ -27,6 +27,13 @@ services:
- SSL_MODE=off
ports:
- "${APP_PORT:-8000}:80"
+ expose:
+ - "${APP_PORT:-8000}"
+ healthcheck:
+ test: curl --fail http://localhost:80/api/health || exit 1
+ interval: 4s
+ retries: 5
+ timeout: 2s
depends_on:
postgres:
condition: service_healthy
diff --git a/routes/api.php b/routes/api.php
index 889937e11a..501d5aa19c 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -14,6 +14,9 @@ use Illuminate\Support\Facades\Route;
|
*/
-Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
- return $request->user();
+Route::get('/health', function () {
+ return 'OK';
});
+// Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
+// return $request->user();
+// });