Example docker-compose to trigger healthcheck events.
This commit is contained in:
14
docker-compose.yml
Normal file
14
docker-compose.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
failing:
|
||||
image: alpine:latest
|
||||
command: "sleep 600"
|
||||
labels:
|
||||
com.example.description: "Accounting webapp"
|
||||
healthcheck:
|
||||
test: "false"
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
Reference in New Issue
Block a user