Commit 924b7fa
fix(shell): restart browser sidecar reliably via healthcheck + DinD isolation
- add healthcheck to browser service (curl /json/version on port 9223) so Docker
knows when CDP is actually ready instead of just when the container started
- switch depends_on to condition: service_healthy so the main container waits
for a healthy browser before starting — fixes the restart race condition (#137)
- replace host docker.sock bind-mount in docker-compose.api.yml with a dedicated
DinD service (docker:27-dind) and set DOCKER_HOST=tcp://dind:2375 in api,
providing full Docker isolation without touching the host daemon
Closes #137
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 65da7d4 commit 924b7fa
2 files changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
2 | 12 | | |
3 | 13 | | |
4 | 14 | | |
| |||
9 | 19 | | |
10 | 20 | | |
11 | 21 | | |
| 22 | + | |
12 | 23 | | |
13 | 24 | | |
14 | 25 | | |
15 | | - | |
16 | 26 | | |
| 27 | + | |
| 28 | + | |
17 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments