Add application health endpoint
This commit is contained in:
@@ -29,7 +29,7 @@ services:
|
||||
- CMD
|
||||
- node
|
||||
- -e
|
||||
- fetch('http://127.0.0.1:3000/api/health/database').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))
|
||||
- fetch('http://127.0.0.1:3000/api/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 8
|
||||
|
||||
@@ -25,7 +25,7 @@ services:
|
||||
- CMD
|
||||
- node
|
||||
- -e
|
||||
- fetch('http://127.0.0.1:3000/api/health/database').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))
|
||||
- fetch('http://127.0.0.1:3000/api/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 8
|
||||
|
||||
Reference in New Issue
Block a user