-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.local.yml
84 lines (78 loc) · 2.23 KB
/
docker-compose.local.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
81
82
83
84
version: "3.4"
services:
e2e:
depends_on:
- selenoid
- selenoid-ui
links:
- selenoid
- selenoid-ui
environment:
- TZ=Asia/Kolkata
- SELENOID=true # enables vnc and video
# - FILE=test.spec.ts
#command: ["spec"]
selenoid:
volumes:
- "./selenoid-outputs/browsers-vnc:/etc/selenoid:ro"
- "./selenoid-outputs/output/:/output"
- "/var/run/docker.sock:/var/run/docker.sock"
- "./selenoid-outputs/video:/opt/selenoid/video"
- "./selenoid-outputs/logs:/opt/selenoid/logs"
environment:
- "OVERRIDE_VIDEO_OUTPUT_DIR=$PWD/selenoid-outputs/video"
command: [
"-conf", # Flag for browsers configuration
"/etc/selenoid/browsers.json", # Location for browsers configuration file
"-video-output-dir", # Flag to save recorded video in a directory
"/opt/selenoid/video", # Location of the directory
"-container-network", # Network to be used for containers - flag
"selenoid", # network name
"-log-output-dir", # Flag to save logs in a directory
"/opt/selenoid/logs", # Location of the directory
"-limit", # Flag for number of simultaneous container to run
"5", # run count
"-save-all-logs", # to save all logs without considering capabilities
"-enable-file-upload", # file upload support
]
selenoid-video-recorder:
image: selenoid/video-recorder:latest-release
selenoid-ui:
image: "aerokube/selenoid-ui:latest"
container_name: selenoid-ui
links:
- selenoid
ports:
- "8080:8080"
networks:
- selenoid
command: ["--selenoid-uri", "http://selenoid:4444"]
vnc_chrome:
image: "selenoid/vnc_chrome:${CHROME_VERSION}"
container_name: vnc_chrome
links:
- selenoid
- selenoid-ui
depends_on:
- selenoid
- selenoid-ui
networks:
- selenoid
volumes:
- "/dev/shm:/dev/shm"
vnc_firefox:
image: "selenoid/vnc_firefox:${FIREFOX_VERSION}"
container_name: vnc_firefox
links:
- selenoid
- selenoid-ui
depends_on:
- selenoid
- selenoid-ui
networks:
- selenoid
volumes:
- "/dev/shm:/dev/shm"
networks:
selenoid:
name: selenoid