diff --git a/docs/faq.md b/docs/faq.md index 9911ca54..7a49f846 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -22,3 +22,25 @@ Please check the following list. ![Add a user](./images/faq/add_user.png) 2. Add the user to the project in the member page(`/projects/{project_id}/members`). 3. **Logout from Django Admin site.** [You'll face login error without logout of Django Admin site](https://github.com/doccano/doccano/issues/723). + +## I want to update to the latest doccano image + +1. Execute `git pull` to reflect the latest doccano. +2. Delete the volume that `doccano_www` and `doccano_static_volume`. + **Do not delete `doccano_postgres_data` because it stores your projects data.** +3. Rebuild the doccano image. + +The following commands are the procedure for 2~3. + +``` +❯ docker volume ls +DRIVER VOLUME NAME +local doccano_node_modules +local doccano_postgres_data +local doccano_static_volume +local doccano_venv +local doccano_www +❯ docker volume rm doccano_www +❯ docker volume rm doccano_static_volume +❯ docker-compose -f docker-compose.prod.yml build --no-cache +```