0
0
Fork 0
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:
CrazyMax 2020-06-23 11:40:12 +02:00
parent 3fa70ca803
commit d806fca030
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7

View file

@ -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
```