forked from znsio/teswiz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 1004 Bytes
/
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
# To execute this docker-compose yml file use `docker-compose -f docker-compose.yml up`
# Add the `-d` flag at the end for detached execution
version: "3"
services:
# appium:
# image: appium/appium
# ports:
# - ${APPIUM_PORT}:4723
selenium-hub:
image: selenium/hub:3.141.59-20210929
ports:
- ${GRID_PORT}:4444
environment:
TZ: "Asia/Calcutta"
GRID_MAX_SESSION: 16
GRID_BROWSER_TIMEOUT: 60000
GRID_TIMEOUT: 60000
chrome:
image: selenium/node-chrome:3.141.59-20210929
volumes:
- /dev/shm:/dev/shm
- ./src:/tmp/src/
depends_on:
- selenium-hub
deploy:
mode: replicated
replicas: 2
restart_policy:
condition: on-failure
resources:
limits:
cpus: '1'
memory: '2gb'
reservations:
cpus: '1'
environment:
HUB_HOST: 'selenium-hub'
HUB_PORT: 4444
NODE_MAX_SESSION: 5
NODE_MAX_INSTANCES: 5
TZ: "Asia/Calcutta"