diff --git a/frp/README.md b/frp/README.md index 12eeb63..36fb799 100644 --- a/frp/README.md +++ b/frp/README.md @@ -12,6 +12,10 @@ services: image: vimagick/frp volumes: - ./data/frps.ini:/opt/frp/frps.ini + healthcheck: + test: ["CMD", "curl", "-f", "-u", "admin:admin", "http://127.0.0.1:7500/healthz"] + interval: 1m + timeout: 5s network_mode: host restart: unless-stopped ``` diff --git a/frp/docker-compose.yml b/frp/docker-compose.yml index 6cd522a..266e1fb 100644 --- a/frp/docker-compose.yml +++ b/frp/docker-compose.yml @@ -4,5 +4,9 @@ services: image: vimagick/frp volumes: - ./data/frps.ini:/opt/frp/frps.ini + healthcheck: + test: ["CMD", "curl", "-f", "-u", "admin:admin", "http://127.0.0.1:7500/healthz"] + interval: 1m + timeout: 5s network_mode: host restart: unless-stopped