-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
51 lines (51 loc) · 1.19 KB
/
docker-compose.yaml
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
# To execute this docker-compose yml file use `docker-compose -f <file_name> up`
# Add the `-d` flag at the end for detached execution
version: "3"
services:
selenium-hub:
image: selenium/hub:3.141.59-dubnium
container_name: selenium-hub
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome:3.141.59-dubnium
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
ports:
- "5800:5800"
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
firefox:
image: selenium/node-firefox:3.141.59-dubnium
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
ports:
- "5801:5800"
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
tests:
image: qa-services/automation-rspec
build: .
depends_on:
- firefox
- chrome
ports:
- "5000:5000"
environment:
- SELENIUM_HUB_URL=http://selenium-hub:4444/wd/hub
- DRIVER=remote
- BROWSER=chrome
- DOCKER_COMPOSE_WAIT=30
- TESTS_TO_RUN=${TESTS_TO_RUN}
volumes:
- .:/tests
command:
- |
rspec spec/$${TESTS_TO_RUN}
allure serve tmp/allure_default -p 5000