1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-25 15:20:10 +00:00
This commit is contained in:
kx1t 2023-03-30 16:19:16 -04:00
parent 783b4eb02e
commit e0d0831451

View file

@ -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: On the machine where you will run Prometheus and Grafana, create a docker-compose file in the `/opt/grafana` directory:
```bash ```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 cat > docker-compose.yml
``` ```
Now paste in the following text *): 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`).
<details> <details>
<summary>&lt;&dash;&dash; Click the arrow to see the <code>docker-compose.yml</code> text</summary> <summary>&lt;&dash;&dash; Click the arrow to see the <code>docker-compose.yml</code> text</summary>
@ -96,13 +95,10 @@ services:
</details> </details>
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 You should be able to see the following directories:
sudo mkdir -p -m777 /opt/grafana/appdata /opt/grafana/prometheus/config /opt/grafana/prometheus/data
```
Now, you should be able to see the following directories:
- `/opt/grafana/grafana/appdata` - `/opt/grafana/grafana/appdata`
- `/opt/grafana/prometheus/config` - `/opt/grafana/prometheus/config`
- `/opt/grafana/prometheus/data` - `/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: Download and create Grafana and Prometheus for the first time with this command:
```bash ```bash
cd /opt/grafana
docker compose up -d docker compose up -d
``` ```