Skip to content

Commit 042a006

Browse files
committed
Add docker host gateway; increase timeout; add update for browser list
1 parent 759ef37 commit 042a006

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

tools/compose/development.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ services:
4343
chrome:
4444
image: ghcr.io/browserless/chromium:latest
4545
restart: unless-stopped
46+
extra_hosts:
47+
- "host.docker.internal:host-gateway"
4648
ports:
4749
- ${CHROME_PORT:-8080}:3000
4850
environment:
49-
TIMEOUT: 10000
51+
TIMEOUT: 100000
5052
CONCURRENT: 10
5153
TOKEN: ${CHROME_TOKEN:-chrome_token}
5254
EXIT_ON_HEALTH_FAILURE: true

tools/compose/simple.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ services:
3838
chrome:
3939
image: ghcr.io/browserless/chromium:latest
4040
restart: unless-stopped
41+
extra_hosts:
42+
- "host.docker.internal:host-gateway"
4143
environment:
42-
TIMEOUT: 10000
44+
TIMEOUT: 100000
4345
CONCURRENT: 10
4446
TOKEN: chrome_token
4547
EXIT_ON_HEALTH_FAILURE: true

updateAndStart.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
echo updating browsers list
3+
echo .
4+
npx update-browserslist-db@latest
25
echo Pruning PNPM Store
36
echo .
47
pnpm store prune

0 commit comments

Comments
 (0)