From 5bbdbaf6fa83323450bb64cc55579717dc00dcd8 Mon Sep 17 00:00:00 2001 From: shaojun <157350686@qq.com> Date: Wed, 1 Dec 2021 20:30:04 +0800 Subject: [PATCH] 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 * Update site/content/en/docs/faq.md Co-authored-by: Andrey Zhavoronkov * Fix linter issues * Fix linter issues Co-authored-by: Andrey Zhavoronkov Co-authored-by: Nikita Manovich --- site/content/en/docs/faq.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/site/content/en/docs/faq.md b/site/content/en/docs/faq.md index 45e8228e..424a3f81 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