-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
164 lines (152 loc) · 3.51 KB
/
Copy pathdocker-compose.yml
File metadata and controls
164 lines (152 loc) · 3.51 KB
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
services:
# Selenium Grid Hub
selenium-hub:
image: selenium/hub:4.18.1
container_name: selenium-hub
ports:
- "4442:4442"
- "4443:4443"
- "4444:4444"
environment:
- GRID_MAX_SESSION=16
- GRID_BROWSER_TIMEOUT=300
- GRID_TIMEOUT=300
networks:
- test-network
# Chrome Node
chrome:
image: selenium/node-chrome:4.18.1
shm_size: 2gb
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=4
- SE_NODE_OVERRIDE_MAX_SESSIONS=true
networks:
- test-network
# Firefox Node
firefox:
image: selenium/node-firefox:4.18.1
shm_size: 2gb
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=4
- SE_NODE_OVERRIDE_MAX_SESSIONS=true
networks:
- test-network
# Edge Node
edge:
image: selenium/node-edge:4.18.1
shm_size: 2gb
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=4
- SE_NODE_OVERRIDE_MAX_SESSIONS=true
networks:
- test-network
# Appium Server
appium:
image: appium/appium:latest
container_name: appium-server
ports:
- "4723:4723"
- "4724:4724"
environment:
- APPIUM_HOST=0.0.0.0
- APPIUM_PORT=4723
- APPIUM_LOG_LEVEL=info
volumes:
- /dev/bus/usb:/dev/bus/usb
privileged: true
networks:
- test-network
# PostgreSQL Database for Test Data
postgres:
image: postgres:15-alpine
container_name: test-postgres
environment:
POSTGRES_DB: testdb
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpass
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./sqlQueries:/docker-entrypoint-initdb.d
networks:
- test-network
# Redis for Caching
redis:
image: redis:7-alpine
container_name: test-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- test-network
# WireMock for API Mocking
wiremock:
image: wiremock/wiremock:3.4.2
container_name: wiremock-server
ports:
- "8080:8080"
environment:
- WIREMOCK_OPTIONS=--verbose
volumes:
- ./wiremock:/home/wiremock
networks:
- test-network
# Test Results Server (Nginx)
test-results:
image: nginx:alpine
container_name: test-results-server
ports:
- "8081:80"
volumes:
- ./reports:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/nginx.conf
networks:
- test-network
# Monitoring with Grafana
grafana:
image: grafana/grafana:latest
container_name: test-grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- grafana_data:/var/lib/grafana
networks:
- test-network
# Prometheus for Metrics
prometheus:
image: prom/prometheus:latest
container_name: test-prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
networks:
- test-network
volumes:
postgres_data:
redis_data:
grafana_data:
prometheus_data:
networks:
test-network:
driver: bridge