Favicon Replacement
When working with multiple MITIGATOR clusters, it can be inconvenient to navigate through open browser tabs, as all of them display the same favicon, making it difficult to quickly locate the required cluster.
To replace the default favicons, follow these steps:
-
Prepare three PNG icons that meet the standard favicon sizes:
icon16.png– 16×16 pixels;icon32.png– 32×32 pixels;icon192.png– 192×192 pixels.
You can either download a set of SVG icons from the MITIGATOR team and convert them to PNG at the required sizes, or use your own custom images.
-
Create new directory
/srv/mitigator/faviconsand place the icon files in it. -
Create a YML file named
docker-compose.favicon.ymlwith the following content:services: frontend: volumes: - ./favicons/icon16.png:/frontend/img/favicon/16.png - ./favicons/icon32.png:/frontend/img/favicon/32.png - ./favicons/icon192.png:/frontend/img/favicon/192.png -
Add
docker-compose.favicon.ymlto theCOMPOSE_FILElist in the.envfile:sed -i 's/^COMPOSE_FILE=\(.*\)$/COMPOSE_FILE=\1:docker-compose.favicon.yml/' .env -
Apply the changes.
docker-compose up -d