Docker
The recommended and easiest way to get started is with Docker.
docker-compose
Pre-requisite: You have either docker-compose or Docker Desktop installed
- Create a directory
docgraf- Inside this folder create a docker-compose.yaml file in the directory
- Also create a configuration.local.json file in the directory.
- Edit the config file to set your Grafana host and Service Account token
- Open a terminal in this folder
- Run:
docker-compose pull && docker-compose up -d
You can learn more about customizing your configuration over in the Configuration Section.
Docker Daemon
It is recommened to run DocGraf against a docker proxy like the provided tecnativa/docker-socket-proxy.
Repositories
DockerHub
docker run -v /full/path/to/configuration.local.json:/app/configuration.local.json -v /full/path/to/output:/app/output philosowaffle/docgraf:stable
GitHub Package
docker run -v /full/path/to/configuration.local.json:/app/configuration.local.json -v /full/path/to/output:/app/output ghcr.io/philosowaffle/docgraf:stable
Tags
stable- Always points to the latest releaselatest- The bleeding edge of the master branch, breaking changes may happenX.Y.Z- For using a specific released version
Docker User
The images run the process under the user and group docgraf:docgraf with uid and gid 1019:1019. To access files created by docgraf:
- Create a group on the local machine
docgrafwith group id1019 - Add your user on the local machine to the
docgrafgroup