From e0d0831451bdb9c1a99fc9520dde480f63530d1f Mon Sep 17 00:00:00 2001 From: kx1t Date: Thu, 30 Mar 2023 16:19:16 -0400 Subject: [PATCH] updates --- README-grafana.md | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/README-grafana.md b/README-grafana.md index 22d1ba7..43e4253 100644 --- a/README-grafana.md +++ b/README-grafana.md @@ -30,14 +30,13 @@ Now recreate the ultrafeeder container (`docker-compose up -d ultrafeeder`) and On the machine where you will run Prometheus and Grafana, create a docker-compose file in the `/opt/grafana` directory: ```bash -mkdir -p -m777 /opt/grafana/grafana/appdata /opt/grafana/prometheus/config /opt/grafana/prometheus/data && cd /opt/grafana +mkdir -p -m777 /opt/grafana/grafana/appdata /opt/grafana/prometheus/config /opt/grafana/prometheus/data +cd /opt/grafana cat > docker-compose.yml ``` Now paste in the following text *): -*) The volume definition structure is written this way purposely to ensure that the containers can place files in the persistent directories. Do not try to "directly" map volumes (`/opt/grafana/grafana/appdata:/var/lib/grafana`). -
<‐‐ Click the arrow to see the docker-compose.yml text @@ -96,13 +95,10 @@ services:
-Once you have created and saved this `docker-compose.yml` file, give these commands to create the mapped volumes: +*) The volume definition structure is written this way purposely to ensure that the containers can place files in the persistent directories. Do not try to "directly" map volumes (`/opt/grafana/grafana/appdata:/var/lib/grafana`). -```bash -sudo mkdir -p -m777 /opt/grafana/appdata /opt/grafana/prometheus/config /opt/grafana/prometheus/data -``` +You should be able to see the following directories: -Now, you should be able to see the following directories: - `/opt/grafana/grafana/appdata` - `/opt/grafana/prometheus/config` - `/opt/grafana/prometheus/data` @@ -110,7 +106,6 @@ Now, you should be able to see the following directories: Download and create Grafana and Prometheus for the first time with this command: ```bash -cd /opt/grafana docker compose up -d ```