mirror of
https://github.com/crazy-max/diun.git
synced 2025-04-26 20:14:42 +00:00
Follow KISS principle in documentation
… by: - omit redefining default values - avoid an artificial container name (mostly not required when using docker compose) - use the `PWD` env variable instead of spawning a process for the same result
This commit is contained in:
parent
6f92dd6126
commit
a1e66327df
1 changed files with 1 additions and 10 deletions
|
@ -49,15 +49,12 @@ version: "3.5"
|
||||||
services:
|
services:
|
||||||
diun:
|
diun:
|
||||||
image: crazymax/diun:latest
|
image: crazymax/diun:latest
|
||||||
container_name: diun
|
|
||||||
command: serve
|
command: serve
|
||||||
volumes:
|
volumes:
|
||||||
- "./data:/data"
|
- "./data:/data"
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
environment:
|
environment:
|
||||||
- "TZ=Europe/Paris"
|
- "TZ=Europe/Paris"
|
||||||
- "LOG_LEVEL=info"
|
|
||||||
- "LOG_JSON=false"
|
|
||||||
- "DIUN_WATCH_WORKERS=20"
|
- "DIUN_WATCH_WORKERS=20"
|
||||||
- "DIUN_WATCH_SCHEDULE=0 */6 * * *"
|
- "DIUN_WATCH_SCHEDULE=0 */6 * * *"
|
||||||
- "DIUN_WATCH_JITTER=30s"
|
- "DIUN_WATCH_JITTER=30s"
|
||||||
|
@ -79,13 +76,11 @@ Or use the following command:
|
||||||
```shell
|
```shell
|
||||||
docker run -d --name diun \
|
docker run -d --name diun \
|
||||||
-e "TZ=Europe/Paris" \
|
-e "TZ=Europe/Paris" \
|
||||||
-e "LOG_LEVEL=info" \
|
|
||||||
-e "LOG_JSON=false" \
|
|
||||||
-e "DIUN_WATCH_WORKERS=20" \
|
-e "DIUN_WATCH_WORKERS=20" \
|
||||||
-e "DIUN_WATCH_SCHEDULE=0 */6 * * *" \
|
-e "DIUN_WATCH_SCHEDULE=0 */6 * * *" \
|
||||||
-e "DIUN_WATCH_JITTER=30s" \
|
-e "DIUN_WATCH_JITTER=30s" \
|
||||||
-e "DIUN_PROVIDERS_DOCKER=true" \
|
-e "DIUN_PROVIDERS_DOCKER=true" \
|
||||||
-v "$(pwd)/data:/data" \
|
-v "$PWD/data:/data" \
|
||||||
-v "/var/run/docker.sock:/var/run/docker.sock" \
|
-v "/var/run/docker.sock:/var/run/docker.sock" \
|
||||||
-l "diun.enable=true" \
|
-l "diun.enable=true" \
|
||||||
crazymax/diun:latest
|
crazymax/diun:latest
|
||||||
|
@ -106,7 +101,6 @@ version: "3.5"
|
||||||
services:
|
services:
|
||||||
diun:
|
diun:
|
||||||
image: crazymax/diun:latest
|
image: crazymax/diun:latest
|
||||||
container_name: diun
|
|
||||||
command: serve
|
command: serve
|
||||||
volumes:
|
volumes:
|
||||||
- "./data:/data"
|
- "./data:/data"
|
||||||
|
@ -141,7 +135,6 @@ version: "3.5"
|
||||||
services:
|
services:
|
||||||
diun_app:
|
diun_app:
|
||||||
image: docker.io/crazymax/diun:latest
|
image: docker.io/crazymax/diun:latest
|
||||||
container_name: diun
|
|
||||||
volumes:
|
volumes:
|
||||||
- "./data:/data"
|
- "./data:/data"
|
||||||
# root mode
|
# root mode
|
||||||
|
@ -151,8 +144,6 @@ services:
|
||||||
#- "/run/user/1000/podman/podman.sock:/var/run/docker.sock"
|
#- "/run/user/1000/podman/podman.sock:/var/run/docker.sock"
|
||||||
environment:
|
environment:
|
||||||
- "TZ=Europe/Paris"
|
- "TZ=Europe/Paris"
|
||||||
- "LOG_LEVEL=info"
|
|
||||||
- "LOG_JSON=false"
|
|
||||||
- "DIUN_WATCH_WORKERS=20"
|
- "DIUN_WATCH_WORKERS=20"
|
||||||
- "DIUN_WATCH_SCHEDULE=0 */6 * * *"
|
- "DIUN_WATCH_SCHEDULE=0 */6 * * *"
|
||||||
- "DIUN_WATCH_JITTER=30s"
|
- "DIUN_WATCH_JITTER=30s"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue