-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
81 lines (70 loc) · 2.04 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
version: '3'
services:
engine-apache:
image: httpd:2.4-alpine
container_name: engine-apache
restart: always
volumes:
- ./test-data:/usr/local/apache2/htdocs/
ports:
- "8485:80"
web:
build: .
container_name: daksha
restart: always
volumes:
- ./test-data:/daksha/test-data
ports:
- "8083:8000"
environment:
STORAGE_PATH: "test-data"
APACHE_URL: "http://127.0.0.1:8485/"
#These variables are only needed if you want to store the test results in the database
TEST_RESULT_DB: "postgres"
PG_DB : "postgres"
PG_USER : "postgres"
PG_HOST: "postgresdb"
PG_PASSWORD: "postgres"
PG_PORT: "5432"
#Set these environment variables if you want Cron functionality
# CRON_ENABLED : "false"
# CRON_FILE_SOURCE : none
# CRON_FILE_PATH : none
#Set these environment variables if you want Test reports to be shown in Report Portal
# REPORT_PORTAL_ENABLED : "True"
# REPORT_PORTAL_ENDPOINT: ${REPORT_PORTAL_ENDPOINT}
# REPORT_PORTAL_PROJECT_NAME: ${REPORT_PORTAL_PROJECT_NAME}
# REPORT_PORTAL_TOKEN: ${REPORT_PORTAL_TOKEN}
# If you want don't want database enabled, then comment out the below lines
depends_on:
- postgresdb
selenium-hub:
image: selenium/hub
ports:
- "4444:4444"
selenium-node:
image: selenium/node-chrome
environment:
- HUB_PORT=4444
- SE_EVENT_BUS_HOST=selenium-hub
- TZ=PST
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_NODE_MAX_INSTANCES=4
- SE_NODE_MAX_SESSIONS=5
- NODE_MAX_INSTANCES=5
- NODE_MAX_SESSION=5
- SE_NODE_GRID_URL=http://selenium-hub:4444/wd/hub
depends_on:
- selenium-hub
postgresdb:
container_name: postgresdb
image: postgres:12
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- "5432:5432"
volumes:
- ./test-data/db-data:/var/lib/postgresql/data