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
|
- ./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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue