Skip to content

Commit

Permalink
update the doc for change default hostname or port (#3915)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

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

Co-authored-by: Andrey Zhavoronkov <[email protected]>

* Fix linter issues

* Fix linter issues

Co-authored-by: Andrey Zhavoronkov <[email protected]>
Co-authored-by: Nikita Manovich <[email protected]>
  • Loading branch information
3 people authored Dec 1, 2021
1 parent c820723 commit 5bbdbaf
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions site/content/en/docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5bbdbaf

Please sign in to comment.