forked from vercel/og-image
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
37 lines (35 loc) · 870 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: "3"
services:
screenshotter:
# build: ./
image: ghcr.io/wei/screenshotter
restart: always
environment:
- BROWSER_WS_ENDPOINT=ws://browserless:3000
- WAIT_UNTIL=networkidle2
ports:
- 3000:3000
depends_on:
- browserless
networks:
- screenshotter_net
browserless:
image: browserless/chrome
restart: always
environment:
- MAX_CONCURRENT_SESSIONS=5
- CONNECTION_TIMEOUT=30000
- MAX_QUEUE_LENGTH=10
- PREBOOT_CHROME=true
- KEEP_ALIVE=true
- WORKSPACE_DELETE_EXPIRED=true
- WORKSPACE_EXPIRE_DAYS=1
- DEBUG=browserless/chrome*
- EXIT_ON_HEALTH_FAILURE=true
- DEFAULT_BLOCK_ADS=true
- ENABLE_DEBUGGER=false
- DEFAULT_USER_DATA_DIR=/tmp/shared-profile
networks:
- screenshotter_net
networks:
screenshotter_net: