未验证 提交 5bbdbaf6 编写于 作者: S shaojun 提交者: GitHub

update the doc for change default hostname or port (#3915)

* update for change default hostname or port

Improve the description for how to change the default hostname, and fix the inaccuracy descrption for port change.

* Update site/content/en/docs/faq.md
Co-authored-by: NAndrey Zhavoronkov <andrey.zhavoronkov@intel.com>

* Update site/content/en/docs/faq.md
Co-authored-by: NAndrey Zhavoronkov <andrey.zhavoronkov@intel.com>

* Fix linter issues

* Fix linter issues
Co-authored-by: NAndrey Zhavoronkov <andrey.zhavoronkov@intel.com>
Co-authored-by: NNikita Manovich <nikita.manovich@intel.com>
上级 c8207238
......@@ -49,18 +49,26 @@ You should free up disk space or change the threshold, to do so check: [Elastics
To change the hostname, simply set the `CVAT_HOST` environemnt variable
```
export CVAT_HOST=<YOUR_HOSTNAME>
export CVAT_HOST=<YOUR_HOSTNAME_OR_IP>
```
NOTE, if you're using `docker-compose` with `sudo` to run CVAT, then please add the `-E` (or `--preserve-env`)
flag to preserve the user environment variable which set above to take effect in your docker containers:
If you want to change the port, change the `entryPoints.web.address` part of `traefik` image command in `docker-compose.yml`
```
sudo -E docker-compose up -d
```
If you want to change the default web application port, change the `ports` part of `traefik` service configuration
in `docker-compose.yml`
```
services:
traefik:
command:
- "--providers.docker.exposedByDefault=false"
- "--providers.docker.network=test"
- "--entryPoints.web.address=:<YOUR_PORT>"
...
...
ports:
- <YOUR_WEB_PORTAL_PORT>:8080
- 8090:8090
```
Note that changing the port does not make sense if you are using HTTPS - port 443 is conventionally
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册