浏览代码

chore: update env docs to, indicate that a container restart is necessary (#4054)

Daniel Dietzler 1 年之前
父节点
当前提交
77e38abe91
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      docs/docs/install/environment-variables.md

+ 11 - 0
docs/docs/install/environment-variables.md

@@ -4,6 +4,17 @@ sidebar_position: 90
 
 # Environment Variables
 
+:::caution
+
+To change environment variables, you must recreate the Immich containers.
+Just restarting the containers does not replace the environment within the container!
+
+In order to recreate the container using docker compose, run `docker compose up -d`.
+In most cases docker will recognize that the `.env` file has changed and recreate the affected containers.
+If this should not work, try running `docker compose up -d --force-recreate`.
+
+:::
+
 ## Docker Compose
 
 | Variable          | Description           |  Default  | Services                                                       |