-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.integration.yml
72 lines (72 loc) · 1.41 KB
/
docker-compose.integration.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
version: '2.0'
services:
# Quiz Tool to be tested
client:
build: client
ports:
- "80:80"
links:
- server_node
depends_on:
- chrome
- firefox
server_node:
build: server
environment:
- NODE_ENV=test
- AUTH_DISABLED=true
- GOOGLE_AUTH_DISABLED=true
env_file:
- .env
links:
- database
depends_on:
- chrome
- firefox
database:
image: mongo
ports:
- "27017:27017"
depends_on:
- chrome
- firefox
# Integration tests runner
tester:
build: tester
depends_on:
- chrome
- firefox
- selenium-hub
env_file:
- .env
entrypoint: npm test
# Selenium hub for integration testing
selenium-hub:
image: selenium/hub
container_name: selenium-hub
ports:
- "4444:4444"
environment:
- GRID_MAX_SESSION=10
chrome:
image: selenium/node-chrome
depends_on:
- selenium-hub
volumes:
- /dev/shm:/dev/shm
environment:
- HUB_PORT_4444_TCP_ADDR=selenium-hub
- HUB_PORT_4444_TCP_PORT=4444
- NODE_MAX_SESSION=10
- NODE_MAX_INSTANCES=10
firefox:
image: selenium/node-firefox
depends_on:
- selenium-hub
volumes:
- /dev/shm:/dev/shm
environment:
- HUB_PORT_4444_TCP_ADDR=selenium-hub
- HUB_PORT_4444_TCP_PORT=4444
- NODE_MAX_SESSION=10
- NODE_MAX_INSTANCES=10