-
Notifications
You must be signed in to change notification settings - Fork 62
/
docker-compose-v3-proxy.yml
58 lines (56 loc) · 1.75 KB
/
docker-compose-v3-proxy.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
# To execute this docker-compose yml file use `docker-compose -f docker-compose-v3-proxy.yml up`
# Add the `-d` flag at the end for detached execution
# To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose-v3-proxy.yml down`
services:
chrome:
image: ${CHROME_IMAGE}
container_name: "${PROJECT_NAME}-chrome"
shm_size: 2gb
volumes:
- /dev/shm:/dev/shm
- ./src:/tmp/src/
depends_on:
- selenium-hub
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_NODE_MAX_SESSIONS=2
- SE_NODE_GRID_URL=http://${HOST_IP}:${GRID_PORT}
- SE_NODE_SESSION_TIMEOUT=30
- HTTP_PROXY=${PROXY_KEY}
- HTTPS_PROXY=${PROXY_KEY}
- http_proxy=${PROXY_KEY}
- https_proxy=${PROXY_KEY}
firefox:
image: ${FIREFOX_IMAGE}
container_name: "${PROJECT_NAME}-firefox"
shm_size: 2gb
volumes:
- /dev/shm:/dev/shm
- ./src:/tmp/src/
depends_on:
- selenium-hub
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_NODE_MAX_SESSIONS=2
- SE_NODE_GRID_URL=http://${HOST_IP}:${GRID_PORT}
- SE_NODE_SESSION_TIMEOUT=30
- HTTP_PROXY=${PROXY_KEY}
- HTTPS_PROXY=${PROXY_KEY}
- http_proxy=${PROXY_KEY}
- https_proxy=${PROXY_KEY}
selenium-hub:
image: ${SELENIUM_HUB_IMAGE}
container_name: "${PROJECT_NAME}-selenium-hub"
ports:
- "${GRID_PORT_1}:4442"
- "${GRID_PORT_2}:4443"
- "${GRID_PORT}:4444"
environment:
- HTTP_PROXY=${PROXY_KEY}
- HTTPS_PROXY=${PROXY_KEY}
- http_proxy=${PROXY_KEY}
- https_proxy=${PROXY_KEY}