-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.74 KB
/
docker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.74 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
mongodb:
image: 'mongo:latest'
container_name: 'mongodb'
restart: always
ports:
- '27017:27017'
command: ["mongod", "--bind_ip_all"]
volumes:
- b4_mongodb_data:/data/db
networks:
- backend
healthcheck:
test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 3
proxy-hub:
image: 'galaxyeye88/proxy-hub:latest'
container_name: 'proxy-hub'
ports:
- '8192:8192'
profiles: ["proxy"] # ✅ Only start when profile=proxy, e.g., docker compose --profile proxy up
restart: unless-stopped
browser4:
image: 'galaxyeye88/browser4:latest'
container_name: 'browser4'
depends_on:
mongodb:
condition: service_healthy
environment:
DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY}
PROXY_ROTATION_URL: ${PROXY_ROTATION_URL}
BROWSER_CONTEXT_MODE: DEFAULT # Check documentation for other modes
BROWSER_CONTEXT_NUMBER: 2 # Ignore this if BROWSER_CONTEXT_MODE is set to DEFAULT
BROWSER_MAX_OPEN_TABS: 8 # Ignore this if BROWSER_CONTEXT_MODE is set to DEFAULT
BROWSER_DISPLAY_MODE: HEADLESS
GORA_MONGODB_SERVERS: mongodb:27017
SPRING_DATA_MONGODB_URI: mongodb://mongodb:27017/browser4
SERVER_PORT: 8182
SERVER_ADDRESS: 0.0.0.0
ports:
- '8182:8182'
command: ["--bind_ip_all"]
networks:
- backend
ulimits:
nofile:
soft: 65535
hard: 65535
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8182/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
networks:
backend:
driver: bridge
name: browser4_backend
volumes:
b4_mongodb_data: