Working Through a Proxy
Docker
If docker.mitigator.ru is accessed through a proxy, you need to configure Docker.
On systems running systemd, you need to:
-
Create a drop-in to the Docker service, specifying the proxy in the environment (replace the details of connecting to the proxy with the current ones):
-
Add proxy certificate to Docker’s trusted ones (
/path/to/proxy.crtreplace with the path to the proxy certificate): -
Update the description of the Docker service and restart it:
MITIGATOR
If MITIGATOR will communicate with the license server (ls.mitigator.ru), the mail server and the Vestochka service through a proxy, you need to specify environment variables:
-
Create a YML file named
docker-compose.proxy.ymlwith the following content: -
Add
docker-compose.proxy.ymlto theCOMPOSE_FILElist in the.envfile: -
If necessary, also set
NO_PROXY(addresses that need to be accessed without a proxy), you need to include.mitigator,localhost,127.0.0.0/8,10.0.0.0/8,192.168.0.0/16and172.16.0.0/12in it: -
Restart the backend service:
Do not use proxy settings in ~/.docker/config.json configuration file.
If these settings are required for non-MITIGATOR containers,
specify them only for such containers.
HTTPS-proxy
- Install proxy certificate system-wide:
- Bind system certificates to a backend service.
To do this, add bind settings in the
docker-compose.proxy.yml:
-
Restart the backend service: