From a402a540c05637d0b11a23d9e182b8daea97629c Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 13 Dec 2022 08:35:19 +0900 Subject: [PATCH] Describe how to change port number --- docs/faq.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index f0657ca6..13e4a857 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -76,9 +76,25 @@ Please check the following list. ## I want to change port number -On production, edit `docker-compose.prod.yml` file: change `80:80` substring in `nginx`/`ports` section to `:80`. +In the case of Docker Compose, you can change the port number by editing `docker-compose.prod.yml`. First, you change `80:8080` to `:8080` in `nginx`/`ports` section as follows: -On development, edit `docker-compose.dev.yml` file: change `8000:8000` substring in `backend`/`ports` section to `:8000`. +```yaml +nginx: + image: doccano/doccano:frontend + ports: + - :8080 +``` + +Then, you need to add `CSRF_TRUSTED_ORIGINS` environment variable to `backend`/`environment` section as follows: + +```yaml +backend: + image: doccano/doccano:backend + environment: + ... + DJANGO_SETTINGS_MODULE: "config.settings.production" + CSRF_TRUSTED_ORIGINS: "http://127.0.0.1:" +``` ## I want to update to the latest doccano image