Skip to content

Commit

Permalink
Update migration notes (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Jun 22, 2020
1 parent 473275e commit 3fa70ca
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/migration/v3-to-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,29 @@ In order to enable transposition into environmental variables, all fields in con
file:
directory: ./imagesdir
```

## `/diun.yml` not loaded by default in Docker image

Following the transposition of the configuration into environment variables, the configuration file `/diun.yml`
is no longer loaded by default in the official Docker image.

If you want to load a configuration file through the Docker image you will have to declare the
[`CONFIG` environment variable](../get-started.md#diun-cli) pointing to the assigned configuration file:

```yaml
version: "3.5"

services:
diun:
image: crazymax/diun:latest
volumes:
- "./data:/data"
- "./diun.yml:/diun.yml:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- "CONFIG=/diun.yml"
- "TZ=Europe/Paris"
- "LOG_LEVEL=info"
- "LOG_JSON=false"
restart: always
```

0 comments on commit 3fa70ca

Please sign in to comment.