fablabbcn / smartcitizen-api

The Smart Citizen Engine
https://developer.smartcitizen.me
GNU Affero General Public License v3.0
10 stars 4 forks source link

Add grafana to docker-compose #296

Closed oscgonfer closed 4 months ago

oscgonfer commented 5 months ago

Previously we have been running grafana-agent via systemd, but it would be good if we can add it to the compose.yml file.

As it runs on the mqtt server:

docker run -d --name grafana \
    --restart="unless-stopped" \
    --memory="1g" \
    --memory-swap="1g" \
    -v /tmp/agent:/etc/agent/data \
    -v /root/grafana-agent-config.yaml:/etc/agent/agent.yaml \
    grafana/agent:v0.11.0

However, would be good to make it all run with docker, moving user/passwords over to the .env file (and include them in env.example): https://grafana.com/docs/grafana/latest/setup-grafana/installation/docker/

So:

oscgonfer commented 4 months ago

Done by https://github.com/fablabbcn/smartcitizen-api/pull/299