mirror of
https://github.com/crazy-max/diun.git
synced 2026-01-01 18:47:26 +01:00
1.2 KiB
1.2 KiB
Installation with Docker
Diun provides automatically updated Docker 🐳 images within Docker Hub and Quay. It is possible to always use the latest stable tag or to use another service that handles updating Docker images.
Environment variables can be used within your container :
TZ: Timezone assignedLOG_LEVEL: Log level output (defaultinfo)LOG_JSON: Enable JSON logging output (defaultfalse)LOG_CALLER: Enable to add file:line of the caller (defaultfalse)
Docker compose is the recommended way to run this image. Copy the content of folder .res/compose in /opt/diun/ on your host for example. Edit the compose and config file with your preferences and run the following commands :
docker-compose up -d
docker-compose logs -f
Or use the following command :
$ docker run -d --name diun \
-e "TZ=Europe/Paris" \
-e "LOG_LEVEL=info" \
-e "LOG_JSON=false" \
-v "$(pwd)/data:/data" \
-v "$(pwd)/diun.yml:/diun.yml:ro" \
crazymax/diun:latest
To upgrade your installation to the latest release:
docker-compose pull
docker-compose up -d