mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-06-12 17:17:51 +02:00
Add docker-compose healthcheck and /api/healthcheck (#12)
This commit is contained in:
+8
-3
@@ -1,9 +1,14 @@
|
||||
version: '3.8'
|
||||
|
||||
---
|
||||
services:
|
||||
deflock:
|
||||
image: public.ecr.aws/w2o0b9g0/deflock.me:latest
|
||||
ports:
|
||||
- 8080:8080
|
||||
#restart: always
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: curl --fail http://localhost:8080/api/healthcheck || exit 1
|
||||
interval: 30s # Time between health checks
|
||||
timeout: 10s # Time to wait for a response
|
||||
retries: 3 # Number of retries before marking as unhealthy
|
||||
start_period: 10s # Time to wait before starting health checks
|
||||
stdin_open: true
|
||||
|
||||
Reference in New Issue
Block a user