···7788If using docker-compose, the service will run 18:00, 18:30, 19:00, 19:30, 20:00 and 20:30, but you can change this in the `Dockerfile`.
991010+
1111+1012## Why?
11131214So you can do fun stuff with your workout data, like doing silly grafana dashboards.
1315For example, you can use the [Grafana Clickhouse plugin](https://grafana.com/grafana/plugins/grafana-clickhouse-datasource/) to visualize your workout data.
1414-1515-
16161717You can make heatmaps, like the one you have on github, or you can make a dashboard that shows your progress over time, or you can make a dashboard that shows your workout history.
1818
+34
examples/grafana/services/php-heatmap/Dockerfile
···11+# Dockerfile
22+#
33+# Build and run without Docker Compose. You need a ClickHouse server running and accessible from the container.
44+# You should use the docker compose from https://github.com/tolik518/strong-api-workout-fetch additionally to
55+# have a ClickHouse server running with the workout data.
66+#
77+# docker build -t heatmap .
88+# docker run -d --name heatmap \
99+# --restart unless-stopped \
1010+# --network service-network \
1111+# -p 1337:80 \
1212+# -e CH_HOST=clickhouse-server \
1313+# -e CH_USER=tolik518 \
1414+# -e CH_PASS=admin \
1515+# -e CH_DB=workouts \
1616+# -e DEBUG=1 \
1717+# -v "$PWD/workout-heatmap.php":/var/www/html/index.php:ro \
1818+# heatmap
1919+#
2020+# Open: http://localhost:1337/
2121+#
2222+FROM php:8.2-apache
2323+2424+# GD-Extension für PNG/Text
2525+RUN apt-get update \
2626+ && apt-get install -y libpng-dev libjpeg-dev libfreetype6-dev \
2727+ && docker-php-ext-configure gd --with-freetype --with-jpeg \
2828+ && docker-php-ext-install -j$(nproc) gd \
2929+ && rm -rf /var/lib/apt/lists/*
3030+3131+COPY workout-heatmap.php /var/www/html/workout-heatmap.php
3232+3333+RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf \
3434+ && echo "DirectoryIndex workout-heatmap.php" >> /etc/apache2/conf-enabled/docker-php.conf