add healthcheck

This commit is contained in:
Кобылкевич Фёдор 2026-04-02 12:00:06 +03:00
parent 9432abee65
commit 480dfcd36e

View file

@ -15,7 +15,8 @@ services:
- ./workspace:/app/workspace:rw - ./workspace:/app/workspace:rw
- ./config.example.yaml:/app/config.example.yaml:ro - ./config.example.yaml:/app/config.example.yaml:ro
depends_on: depends_on:
- browser browser:
condition: service_healthy
stdin_open: true stdin_open: true
tty: true tty: true
restart: always restart: always
@ -50,6 +51,12 @@ services:
volumes: volumes:
- browser_profiles:/src/browser_data - browser_profiles:/src/browser_data
restart: always restart: always
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:9222/json/version >/dev/null || exit 1"]
interval: 10s
timeout: 3s
retries: 12
start_period: 20s
tunnel: tunnel:
image: cloudflare/cloudflared:latest image: cloudflare/cloudflared:latest