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: Andrey Zhavoronkov <andrey.zhavoronkov@intel.com>

* Update site/content/en/docs/faq.md

Co-authored-by: Andrey Zhavoronkov <andrey.zhavoronkov@intel.com>

* Fix linter issues

* Fix linter issues

Co-authored-by: Andrey Zhavoronkov <andrey.zhavoronkov@intel.com>
Co-authored-by: Nikita Manovich <nikita.manovich@intel.com>
main
shaojun 4 years ago committed by GitHub
parent c82072387c
commit 5bbdbaf6fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save