-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
94 lines (84 loc) · 1.77 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
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
85
86
87
88
89
90
91
92
93
version: "3.7"
services:
# app:
# build:
# dockerfile: docker/app/Dockerfile
# context: .
# volumes:
# - ./src:/usr/src/app:delegated
# ports:
# - "6794:6794"
# environment:
# PORT: "6794"
# entrypoint:
# - yarn
# - serve
cli:
build:
dockerfile: docker/app/Dockerfile
context: .
volumes:
- ./src:/usr/src/app:delegated
ports:
- "6794:6794"
expose:
- "6794"
environment:
PORT: "6794"
entrypoint:
- sh
- -c
- sleep 1000000
mock_api:
build:
dockerfile: docker/app/Dockerfile
context: .
volumes:
- ./src:/usr/src/app:delegated
# ports:
# - "4976:4976"
expose:
- "3000"
ports:
- "3000:3000"
# environment:
# PORT: "3000"
entrypoint:
- node
- ./mock_api/index.js
mock_api_proxy:
build:
dockerfile: ./Dockerfile
context: docker/mock_api/nginx/
# volumes:
# - ./src:/usr/src/app:delegated
ports:
- "4976:80"
environment:
# FQDN: "localhost"
HTTP_PORT: "80"
TARGET_SERVICE: "mock_api:3000"
CORS_ALLOW_DOMAINS_REGEX: '"http://localhost:6794"'
selenium:
image: selenium/hub:3.14.0
environment:
- GRID_MAX_SESSION=2
- GRID_BROWSER_TIMEOUT=100000
- GRID_TIMEOUT=90000
- GRID_NEW_SESSION_WAIT_TIMEOUT=300000
# ports:
# - "4444:4444"
expose:
- "4444"
chrome:
image: selenium/node-chrome:3.14.0
environment:
- HUB_PORT_4444_TCP_ADDR=selenium
- HUB_PORT_4444_TCP_PORT=4444
- DBUS_SESSION_BUS_ADDRESS=/dev/null
- NODE_MAX_INSTANCES=1
- NODE_MAX_SESSION=1
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium