added healthcheck to mon-client
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
version: '3.1'
|
|
||||||
|
|
||||||
services:
|
|
||||||
haproxy:
|
|
||||||
image: haproxytech/haproxy-alpine:latest
|
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
expose:
|
|
||||||
- 80
|
|
||||||
environment:
|
|
||||||
- AUTH_HTTP=$AUTH_HTTP
|
|
||||||
- MAINNODE=$MAIN_NODE
|
|
||||||
volumes:
|
|
||||||
- ./haproxy/:/usr/local/etc/haproxy:ro
|
|
||||||
restart: unless-stopped
|
|
||||||
@@ -7,6 +7,11 @@ services:
|
|||||||
wireguard:
|
wireguard:
|
||||||
image: lscr.io/linuxserver/wireguard
|
image: lscr.io/linuxserver/wireguard
|
||||||
container_name: wireguard
|
container_name: wireguard
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "ping", "-c", "1", "10.13.13.1" ]
|
||||||
|
timeout: 10s
|
||||||
|
interval: 5s
|
||||||
|
retries: 3
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
- SYS_MODULE
|
- SYS_MODULE
|
||||||
|
|||||||
Reference in New Issue
Block a user