-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
216 lines (202 loc) · 5.78 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
version: "3.3"
services:
influxdb:
image: ${INFLUXDB_IMAGE_VERSION}
container_name: influxdb
restart: always
ports:
- "8086:8086"
volumes:
- influxdb-storage:/var/lib/influxdb2
- ./influxdb/queries:/home/queries:rw
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG_NAME}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET_NAME}
- DOCKER_INFLUXDB_INIT_RETENTION=${INFLUXDB_RETENTION}
networks:
- pagiel
powerapi-hwpc-sensor:
image: ${POWER_API_HWPC_SENSOR_IMAGE_VERSION}
container_name: powerapi-hwpc-sensor
privileged: true
volumes:
- /sys:/sys
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /tmp/powerapi-sensor-reporting-firefox:/reporting
- ./hwpc/config.json:/config.json:ro
command: --config-file /config.json
profiles:
- preconso
networks:
- pagiel
smartwatts:
image: ${SMARTWATTS_IMAGE_VERSION}
container_name: smartwatts
depends_on:
- influxdb
- powerapi-hwpc-sensor
command: --config-file /config.json
profiles:
- preconso
volumes:
- ./smartwatts/config.json:/config.json:ro
networks:
- pagiel
selenium-hub:
image: ${SELENIUM_HUB_IMAGE_VERSION}
container_name: selenium-hub
expose:
- 4444
ports:
- "4442:4442"
- "4443:4443"
- "4444:4444"
profiles:
- preconso
networks:
- pagiel
chrome:
image: ${SELENIUM_NODE_CHROME_IMAGE_VERSION}
container_name: selenium-node-chrome
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
ports:
- "6900:5900"
profiles:
- preconso
networks:
- pagiel
robot-chrome-test:
image: ${ROBOT_IMAGE_VERSION}
command: -v BROWSER:gc --outputdir /out /tests/*.robot
container_name: robot-chrome-test
volumes:
- ./robot/tests:/tests:ro
- ./robot-results/gc:/out:rw
profiles:
- conso
networks:
- pagiel
eco-index:
image: ${GREENIT_ANALYSIS_IMAGE_VERSION}
container_name: eco-index
depends_on:
- influxdb
command: greenit analyse input/urls.yaml -f influxdb --ci --influxdb_hostname http://${INFLUXDB_HOST}:${INFLUXDB_PORT} --influxdb_token ${INFLUXDB_TOKEN} --influxdb_bucket ${INFLUXDB_BUCKET_NAME} --influxdb_org=${INFLUXDB_ORG_NAME}
volumes:
- tmp-storage:/app/input:ro
- ./eco-index/results:/app/output:rw
environment:
- TZ:Europe/Paris
profiles:
- test
networks:
- pagiel
sitespeed:
container_name: sitespeed
image: ${SITESPEED_IMAGE_VERSION}
shm_size: "1g"
depends_on:
- influxdb
command: --config /sitespeed.io/config.json /input/urls.txt
volumes:
- ./sitespeed/results:/sitespeed.io/sitespeed-result:rw
- tmp-storage:/input:ro
- ./sitespeed/config/config.json:/sitespeed.io/config.json
profiles:
- test
networks:
- pagiel
yellowlabtools:
container_name: yellowlabtools
image: ${YELLOWLABTOOLS_IMAGE_VERSION}
depends_on:
- influxdb
command: /input/urls-yellowlabtools.yaml --reporter influxdb --influxdb-hostname ${INFLUXDB_HOST} --influxdb-port ${INFLUXDB_PORT} --influxdb-org ${INFLUXDB_ORG_NAME} --influxdb-token ${INFLUXDB_TOKEN} --influxdb-bucket ${INFLUXDB_BUCKET_NAME} --influxdb-offenders
user: "${RUNNER_USER_ID}:${RUNNER_GROUP_ID}"
volumes:
- tmp-storage:/input
- ./yellowLabTools/reports:/usr/src/ylt/results:rw
privileged: true
profiles:
- test
networks:
- pagiel
grafana:
container_name: grafana
image: ${GRAFANA_IMAGE_VERSION}
restart: always
ports:
- "3000:3000"
volumes:
- grafana-storage:/var/lib/grafana
- ./grafana-provisioning/:/etc/grafana/provisioning
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_USERNAME}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_USERS_ALLOW_SIGN_UP=false
- GF_USERS_ALLOW_ORG_CREATE=false
- INFLUXDB_ORG_ID=${INFLUXDB_ORG_ID}
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
- INFLUXDB_BUCKET_NAME=${INFLUXDB_BUCKET_NAME}
- INFLUXDB_HOST=${INFLUXDB_HOST}
- INFLUXDB_PORT=${INFLUXDB_PORT}
profiles:
- display
networks:
- pagiel
url-converter:
container_name: url-converter
image: ${URL_CONVERTER_IMAGE_VERSION}
command: /home/urlconverter/urls.yaml
volumes:
- ./input/urls.yaml:/home/urlconverter/urls.yaml:ro
- tmp-storage:/home/urlconverter/results:rw
- ./input/templates/:/home/urlconverter/templates/:ro
- ./robot/tests/:/home/urlconverter/tests/:rw
profiles:
- pretest
networks:
- pagiel
report:
container_name: report
build: ./reports
user: "${RUNNER_USER_ID}:${RUNNER_GROUP_ID}"
depends_on:
- influxdb
environment:
- INFLUXDB_ORG_NAME=${INFLUXDB_ORG_NAME}
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
- INFLUXDB_BUCKET_NAME=${INFLUXDB_BUCKET_NAME}
- INFLUXDB_HOST=${INFLUXDB_HOST}
- INFLUXDB_PORT=${INFLUXDB_PORT}
- EXIT_CODE_FAIL=${EXIT_CODE_FAIL}
- REPORT_FORMAT="xml"
volumes:
- ./reports/reports:/opt/report/results/:rw
- ./input/urls.yaml:/opt/report/urls.yaml:ro
- ./yellowLabTools/reports:/opt/report/offenders:ro
profiles:
- report
networks:
- pagiel
networks:
pagiel:
name: "pagiel"
volumes:
influxdb-storage:
report-storage:
grafana-storage:
tmp-storage: