added healthcheck to mon-client

This commit is contained in:
cventastic
2022-02-11 11:34:30 +01:00
parent a363fdbf44
commit 258608bb04
2 changed files with 5 additions and 15 deletions

View File

@@ -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

View File

@@ -7,6 +7,11 @@ services:
wireguard:
image: lscr.io/linuxserver/wireguard
container_name: wireguard
healthcheck:
test: [ "CMD", "ping", "-c", "1", "10.13.13.1" ]
timeout: 10s
interval: 5s
retries: 3
cap_add:
- NET_ADMIN
- SYS_MODULE