towards healthchecks for all containers

This commit is contained in:
2026-02-04 18:11:49 +01:00
parent 7f45788b3d
commit ab2f707706
42 changed files with 245 additions and 19 deletions

View File

@@ -1,11 +1,11 @@
services:
openvpn-server:
image: kylemanna/openvpn:2.4
container_name: openvpn-server
cap_add:
- NET_ADMIN
container_name: openvpn-server
extra_hosts:
- "host:${HOST_IP}"
image: kylemanna/openvpn:2.4
ports:
- 444:443
privileged: true
@@ -13,3 +13,8 @@ services:
volumes:
- /opt/openvpn-server:/etc/openvpn
- /opt/openvpn-server/logrotate.d/openvpn:/etc/logrotate.d/openvpn
healthcheck:
test: ["CMD-SHELL", "ip link show tun0 || exit 1"]
interval: 30s
timeout: 5s
retries: 3