-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
146 lines (146 loc) · 3.3 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
version: "3.9"
services:
mailbox:
image: leastauthority/magic-wormhole-mailbox:22.11.1
ports:
- "4000:4000" # WebSocket
relay:
image: leastauthority/magic-wormhole-relay:22.11.1
ports:
- "4001:4001" # TCP
- "4002:4002" # WebSocket
client:
build: ./client
env_file:
- ./client/.env
volumes:
- ./client:/usr/src/app/client
working_dir: /usr/src/app/client
command: "npm run serve"
ports:
- "8080:8080" # DevServer
- "35729:35729" # LiveReload
depends_on:
- mailbox
- relay
- feedback-api
feedback-api:
build: ./feedback-api
command:
[
"/app/feedback-api",
"-to",
"-smtp-server",
"dummy-smtp-server",
"-smtp-port",
"1025",
]
ports:
- "8001:8001"
depends_on:
- dummy-smtp-server
environment:
- SMTP_USE_TLS=false
- SMTP_PASSWORD=barbazquux
dummy-smtp-server:
build: ./feedback-api/docker/smtp-server
ports:
- "1025:1025"
environment:
- PYTHONUNBUFFERED=1
# Selenium services
chrome:
volumes:
- test-downloads:/home/seluser/downloads
ports:
- 5900:5900
- 7900:7900
build:
context: .
dockerfile: ./client-e2e/images/Dockerfile.chrome
shm_size: 2gb
depends_on:
- selenium-hub
- client
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_NODE_SESSION_TIMEOUT=1800
- SE_VNC_NO_PASSWORD=1
profiles:
- e2e
edge:
volumes:
- test-downloads:/home/seluser/downloads
ports:
- 5901:5900
- 7901:7900
build:
context: .
dockerfile: ./client-e2e/images/Dockerfile.edge
shm_size: 2gb
depends_on:
- selenium-hub
- client
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_NODE_SESSION_TIMEOUT=1800
- SE_VNC_NO_PASSWORD=1
profiles:
- e2e
firefox:
volumes:
- test-downloads:/home/seluser/downloads
ports:
- 5902:5900
- 7902:7900
build:
context: .
dockerfile: ./client-e2e/images/Dockerfile.firefox
shm_size: 2gb
depends_on:
- selenium-hub
- client
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_NODE_SESSION_TIMEOUT=1800
- SE_VNC_NO_PASSWORD=1
profiles:
- e2e
selenium-hub:
image: selenium/hub:4.11.0-20230801
container_name: selenium-hub
ports:
- "4442:4442"
- "4443:4443"
- "4444:4444"
healthcheck:
test:
["CMD", "/opt/bin/check-grid.sh", "--host", "0.0.0.0", "--port", "4444"]
interval: 10s
timeout: 5s
retries: 3
profiles:
- e2e
client-e2e:
build: ./client-e2e
volumes:
- ./client-e2e:/usr/src/app/client-e2e
- test-downloads:/home/node/downloads
working_dir: /usr/src/app/client-e2e
depends_on:
client:
condition: service_started
selenium-hub:
condition: service_healthy
profiles:
- e2e
volumes:
test-downloads: