forked from guilty-love/jd-qinglong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (76 loc) · 1.9 KB
/
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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3"
services:
chrome:
env_file:
- env.properties
container_name: chrome
image: selenium/node-chrome:4.0.0-rc-2-prerelease-20210908
shm_size: 2gb
depends_on:
- selenium-hub
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_NODE_SESSION_TIMEOUT=300
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_NODE_OVERRIDE_MAX_SESSIONS=true
- SE_NODE_MAX_SESSIONS=${MAX_SESSION}
- START_XVFB=false
ports:
- "6901:5900"
- "5556:5555"
selenium-hub:
image: selenium/hub:4.0.0-rc-2-prerelease-20210908
container_name: selenium-hub
environment:
- SE_SESSION_REQUEST_TIMEOUT=20
ports:
- "4442:4442"
- "4443:4443"
- "4444:4444"
redis:
container_name: redis
image: redis:latest
restart: always
environment:
TZ: Asia/Shanghai
ports:
- "6389:6389"
# volumes:
# - ./redis.conf:/etc/redis/redis.conf
# - ./data:/data
command: redis-server --bind 0.0.0.0 --port 6389 --appendonly yes
privileged: true
webapp:
env_file:
- env.properties
container_name: webapp
image: rubyangxg/jd-qinglong:latest
environment:
- "SPRING_PROFILES_ACTIVE=docker"
- "ql.url=${QL_URL}"
- "ql.username=${QL_USERNAME}"
- "ql.password=${QL_PASSWORD}"
- "ql.clientId=${QL_CLIENTID}"
- "ql.clientSecret=${QL_SECRET}"
- "ql.label=${QL_LABEL}"
ports:
- "9090:9090"
depends_on:
- redis
- chrome
# qinglong:
# container_name: qinglong
# image: whyour/qinglong:latest
# volumes:
# - ./data/config:/ql/config
# - ./data/log:/ql/log
# - ./data/db:/ql/db
# - ./data/scripts:/ql/scripts
# - ./data/repo:/ql/repo
# ports:
# - "0.0.0.0:5700:5700"
# environment:
# - ENABLE_HANGUP=true
# - ENABLE_WEB_PANEL=true
# restart: always