diff --git a/site/content/en/docs/faq.md b/site/content/en/docs/faq.md index 45e8228eb9f6..424a3f8118db 100644 --- a/site/content/en/docs/faq.md +++ b/site/content/en/docs/faq.md @@ -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= +export CVAT_HOST= ``` +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=:" + ... + ... + ports: + - :8080 + - 8090:8090 ``` Note that changing the port does not make sense if you are using HTTPS - port 443 is conventionally