forked from thezak48/Varken
-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Jaunet Nathan edited this page Jul 19, 2024
·
2 revisions
- Install docker-compose
- Save the docker-compose.yml file.
- Make edits to the docker-compose.yml file:
- Volume paths for InfluxDB/Varken/Grafana. I personally save all of my container configs under /opt/dockerconfigs so you could, for example, make the top folder and 3 sub-folders in one command with mkdir /opt/dockerconfigs && cd /opt/dockerconfigs && mkdir grafana varken influxdb then fix the volume paths to show the above. Fixing influx, for example, to - /opt/dockerconfigs/influxdb:/var/lib/influxdb
- You will see a TZ and a PUID/PGID variable for Varken. These are to set your timezone and your user/group permissions for your Varken data folder respectively.
- The Grafana container requires specific folder permissions (since 5.1). Change the user/group ownership of your grafana data directory to 472. Example: chown 472:472 /opt/dockerconfigs/grafana
- Start your InfluxDB Container. docker-compose up -d influxdb
- Temporarily start your varken container. docker-compose up -d varken This will generate some folders and a varken.ini file in your varken data directory.
- Stop your varken container with docker-compose down varken and edit your varken.ini file nano /opt/dockerconfigs/varken/varken.ini and follow the Configuration page to set it up appropriately. HINT: You can set the URL of influxdb to influxdb and it will work if they are on the same docker network
- With your varken.ini complete, start your varken container again docker-compose up -d varken and watch the logs to see if you have missed anything docker logs -f varken
- Finally, start your grafana container docker-compose up -d grafana . Follow the logs and make sure it starts up properly docker-compose up -d grafana If it does you should be able to access grafana at host-IP:3000
- Import the official grafana dashboard
Example:
docker run -d \
--name=varken \
-v <path to data>:/config \
-e TZ=America/Chicago \
docker pull ghcr.io/navino16/varken:develop
Use docker-compose instructions for process.
docker stop varken
docker rm varken
docker pull docker pull ghcr.io/navino16/varken:develop
# Run deploy command as ran during installation
docker-compose pull varken
docker-compose up -d