-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
35 lines (32 loc) · 921 Bytes
/
docker-compose.yaml
File metadata and controls
35 lines (32 loc) · 921 Bytes
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
version: "3.8"
services:
llmgw:
build: .
container_name: llmgw
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./config.yaml:/app/config.yaml:ro
- browser-data:/root/.zero-token-service/browser
environment:
- NODE_ENV=production
- TZ=Asia/Shanghai
# Chrome needs extra capabilities for headless mode in Docker
# Option A: headless mode (recommended for Docker)
# Option B: connect to external Chrome via CDP (attach mode)
# Uncomment the following for headless Chrome with sandbox disabled:
# cap_add:
# - SYS_ADMIN
# security_opt:
# - seccomp=unconfined
# Optional: dedicated Chrome instance for CDP attach mode
# chrome:
# image: chromedp/headless-shell:latest
# container_name: llmgw-chrome
# restart: unless-stopped
# ports:
# - "9333:9333"
# shm_size: "2gb"
volumes:
browser-data: