forked from rubyangxg/jd-qinglong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (63 loc) · 1.66 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
version: "3"
#networks:
# selenoid:
# external:
# name: selenoid # 需要事先创建:docker network create selenoid
#networks:
# se-net:
# ipam:
# driver: default
# config:
# - subnet: 172.177.0.0/16
services:
selenoid:
container_name: selenoid
network_mode: bridge
image: aerokube/selenoid:latest-release
volumes:
- "./config:/etc/selenoid"
- "/var/run/docker.sock:/var/run/docker.sock"
- "./logs:/opt/selenoid/logs"
command: [ "-conf", "/etc/selenoid/browsers.json",
"-video-output-dir", "/opt/selenoid/video",
"-log-output-dir", "/opt/selenoid/logs",
"-limit", "10",
"-disable-queue",
"-container-network", "bridge" ]
ports:
- "4444:4444"
restart: always
# networks:
# - selenoid
selenoid-ui:
network_mode: bridge
container_name: selenoid-ui
image: "aerokube/selenoid-ui"
links:
- selenoid
ports:
- "8081:8080"
command: [ "--selenoid-uri", "http://selenoid:4444" ]
restart: always
# networks:
# - selenoid
webapp-selenoid:
network_mode: bridge
container_name: webapp-selenoid
image: rubyangxg/jd-qinglong:1.3
privileged: true
environment:
- "SPRING_PROFILES_ACTIVE=debugremote"
- "selenium.hub.url=http://selenoid:4444/wd/hub"
- "selenium.hub.status.url=http://selenoid:4444/status"
ports:
- "5702:8080"
- "8001:8001"
volumes:
- ./env.properties:/env.properties
- /var/run/docker.sock:/var/run/docker.sock
- ./go-cqhttp:/go-cqhttp
depends_on:
- selenoid
links:
- selenoid