Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- heartbeat:
- image: curlimages/curl:latest
- container_name: heartbeat
- entrypoint: ["/bin/sh", "-c"]
- command:
- - |
- while true; do
- curl --fail --silent --show-error \
- --max-time 10 --retry 2 \
- "$${PING_URL}" || true
- sleep 60
- done
- environment:
- PING_URL: "${HEARTBEAT_URL}"
- restart: unless-stopped
- init: true
- read_only: true
- cap_drop:
- - ALL
- security_opt:
- - no-new-privileges:true
Advertisement
Add Comment
Please, Sign In to add comment