Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the doc for change default hostname or port #3915

Merged
merged 5 commits into from
Dec 1, 2021
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions site/content/en/docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,24 @@ 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:
nmanovic marked this conversation as resolved.
Show resolved Hide resolved

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`
nmanovic marked this conversation as resolved.
Show resolved Hide resolved

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