-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.selenium.yml
46 lines (46 loc) · 1.03 KB
/
docker-compose.selenium.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
services:
server:
build:
context: ./server
dockerfile: ./Dockerfile
environment:
- SELENIUM_TESTS=true
- DANGEROUSLY_DISABLE_HOST_CHECK=true
ports:
- "3001:3001"
- "10678:10678"
client:
build:
context: ./client
dockerfile: ./Dockerfile
environment:
- SELENIUM_TESTS=true
- DANGEROUSLY_DISABLE_HOST_CHECK=true
ports:
- "3000:3000"
selenium-tests:
build:
context: ./selenium_tests
dockerfile: ./Dockerfile
command: pytest ./src/test_python_sample.py
depends_on:
- chrome
- server
- client
selenium-tests-debug:
build:
context: ./selenium_tests
dockerfile: ./Dockerfile
command: python3 -m debugpy --listen 0.0.0.0:10679 --wait-for-client -m pytest ./src/test_python_sample.py
ports:
- "10679:10679"
depends_on:
- chrome
- server
- client
chrome:
image: selenium/standalone-chrome-debug
hostname: chrome
ports:
- "4444:4444"
- "5900:5900"