add hc for coolify
This commit is contained in:
parent
ebba7f7ecb
commit
2fb8d928e5
@ -27,6 +27,13 @@ services:
|
|||||||
- SSL_MODE=off
|
- SSL_MODE=off
|
||||||
ports:
|
ports:
|
||||||
- "${APP_PORT:-8000}:80"
|
- "${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:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
@ -14,6 +14,9 @@
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
Route::get('/health', function () {
|
||||||
return $request->user();
|
return 'OK';
|
||||||
});
|
});
|
||||||
|
// Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
||||||
|
// return $request->user();
|
||||||
|
// });
|
||||||
|
Loading…
Reference in New Issue
Block a user