mirror of
https://github.com/crazy-max/diun.git
synced 2025-04-15 07:34:12 +00:00
Update Docker install doc
This commit is contained in:
parent
3fa70ca803
commit
d806fca030
1 changed files with 33 additions and 0 deletions
|
@ -46,6 +46,7 @@ services:
|
|||
- "DIUN_WATCH_WORKERS=20"
|
||||
- "DIUN_WATCH_SCHEDULE=*/30 * * * *"
|
||||
- "DIUN_PROVIDERS_DOCKER=true"
|
||||
- "DIUN_PROVIDERS_DOCKER_WATCHSTOPPED=true"
|
||||
labels:
|
||||
- "diun.enable=true"
|
||||
- "diun.watch_repo=true"
|
||||
|
@ -83,3 +84,35 @@ To upgrade your installation to the latest release:
|
|||
$ docker-compose pull
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
If you prefer to rely on the configuration file instead of environment variables:
|
||||
|
||||
```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
|
||||
```
|
||||
|
||||
```yaml
|
||||
# ./diun.yml
|
||||
|
||||
watch:
|
||||
workers: 20
|
||||
schedule: "*/30 * * * *"
|
||||
|
||||
providers:
|
||||
docker:
|
||||
watchStopped: true
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue