mirror of
https://github.com/immich-app/immich.git
synced 2026-02-28 09:38:43 +03:00
feat(docs): Explain configuration file location for Docker Compose (#24989)
* Explain configuration file location for Docker Compose * Update config-file.md * Update config-file.md * Update config-file.md --------- Co-authored-by: Mees Frensel <33722705+meesfrensel@users.noreply.github.com>
This commit is contained in:
@@ -8,7 +8,8 @@ A config file can be provided as an alternative to the UI configuration.
|
|||||||
|
|
||||||
### Step 1 - Create a new config file
|
### Step 1 - Create a new config file
|
||||||
|
|
||||||
In JSON format, create a new config file (e.g. `immich.json`) and put it in a location that can be accessed by Immich.
|
In JSON format, create a new config file (e.g. `immich.json`) and put it in a location mounted in the container that can be accessed by Immich.
|
||||||
|
YAML-formatted config files are also supported.
|
||||||
The default configuration looks like this:
|
The default configuration looks like this:
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@@ -251,6 +252,15 @@ So you can just grab it from there, paste it into a file and you're pretty much
|
|||||||
In your `.env` file, set the variable `IMMICH_CONFIG_FILE` to the path of your config.
|
In your `.env` file, set the variable `IMMICH_CONFIG_FILE` to the path of your config.
|
||||||
For more information, refer to the [Environment Variables](/install/environment-variables.md) section.
|
For more information, refer to the [Environment Variables](/install/environment-variables.md) section.
|
||||||
|
|
||||||
:::tip
|
:::info Docker Compose
|
||||||
YAML-formatted config files are also supported.
|
In your `.env` file, the variables `UPLOAD_LOCATION` and `DB_DATA_LOCATION` concern the location on the host.
|
||||||
:::
|
However, the variable `IMMICH_CONFIG_FILE` concerns the location inside the container, and informs the `immich-server` container that a configuration file is present.
|
||||||
|
|
||||||
|
It is recommended to reuse this variable in your `docker-compose.yml`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
volumes:
|
||||||
|
- ./configuration.yml:${IMMICH_CONFIG_FILE}
|
||||||
|
```
|
||||||
|
|
||||||
|
::
|
||||||
|
|||||||
Reference in New Issue
Block a user