-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.yml
71 lines (66 loc) · 2.12 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
version: "3.4"
services:
e2e:
depends_on:
- selenoid
- selenoid-ui
links:
- selenoid
- selenoid-ui
environment:
- TZ=Asia/Kolkata # adding timezone
- SELENOID=true # enables vnc and video, handled this flag in wdio.conf.ts
selenoid:
volumes:
- "./selenoid-outputs/browsers-vnc:/etc/selenoid:ro"
- "./config/:/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
# This service enables to view live automation execution
selenoid-ui:
image: "aerokube/selenoid-ui:latest"
container_name: selenoid-ui
links:
- selenoid
ports:
- "8091:8080"
networks:
- selenoid
command: ["--selenoid-uri", "http://selenoid:4443"]
# downloads chrome and firefox browsers which supports vnc
vnc_chrome:
image: selenoid/chrome:96.0
container_name: chrome
links:
- selenoid
- selenoid-ui
depends_on:
- selenoid
- selenoid-ui
networks:
- selenoid
volumes:
- "/dev/shm:/dev/shm"
networks:
selenoid:
name: selenoid