Browse Source

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

Daniel Dietzler 1 year ago
parent
commit
77e38abe91
1 changed files with 11 additions and 0 deletions
  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
 # 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
 ## Docker Compose
 
 
 | Variable          | Description           |  Default  | Services                                                       |
 | Variable          | Description           |  Default  | Services                                                       |