add healthcheck
This commit is contained in:
parent
9432abee65
commit
480dfcd36e
1 changed files with 8 additions and 1 deletions
|
|
@ -15,7 +15,8 @@ services:
|
|||
- ./workspace:/app/workspace:rw
|
||||
- ./config.example.yaml:/app/config.example.yaml:ro
|
||||
depends_on:
|
||||
- browser
|
||||
browser:
|
||||
condition: service_healthy
|
||||
stdin_open: true
|
||||
tty: true
|
||||
restart: always
|
||||
|
|
@ -50,6 +51,12 @@ services:
|
|||
volumes:
|
||||
- browser_profiles:/src/browser_data
|
||||
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:
|
||||
image: cloudflare/cloudflared:latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue