-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (78 loc) · 1.88 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: "3"
services:
java-app:
image: java-app1
ports:
- "8080:8080"
container_name: Java-app
node-js-1:
build: ./Nodejs-express-testapp-1
ports:
- "7777:7777"
container_name: project_node_js-1
node-js-2:
build: ./Nodejs-express-testapp-2
ports:
- "8888:8888"
container_name: project_node_js-2
nginx:
image: reverse-proxy
ports:
- "80:80"
container_name: project_reverse-proxy
selenium-hub:
image: selenium/hub
container_name: selenium-hub
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome-debug
depends_on:
- selenium-hub
environment:
- HUB_PORT_4444_TCP_ADDR=selenium-hub
- HUB_PORT_4444_TCP_PORT=4444
container_name: selenium-chrome
volumes:
- /dev/shm:/dev/shm
ports:
- "5901:5900"
firefox:
image: selenium/node-firefox-debug
depends_on:
- selenium-hub
environment:
- HUB_PORT_4444_TCP_ADDR=selenium-hub
- HUB_PORT_4444_TCP_PORT=4444
container_name: selenium-firefox
volumes:
- /dev/shm:/dev/shm
ports:
- "5900:5900"
maven:
image: maven
restart: always
environment:
- HUB_URL=http://selenium-hub:4444
- TEST_URL=http://project_node_js-1:7777
- TEST_URL=http://project_node_js-2:8888
volumes:
- ./qa-test:/usr/src
- ./qa-test/target/surefire-reports:/usr/src/target/surefire-reports/:rw
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/src/target/surefire-reports/index.html ]"]
interval: 3s
retries: 6
container_name : maven
working_dir: /usr/src
command : mvn clean test
selenium-report:
container_name: selenium-report
image: httpd:2.4
restart: always
ports:
- "9999:80"
depends_on:
- maven
volumes:
- ./qa-test/target/surefire-reports:/usr/local/apache2/htdocs:rw