This repository contains a docker-compose.yml file to deploy a containerized monitoring stack using InfluxDB 3 Core and Grafana.
Running these services in Docker containers ensures consistent environments and prevents future versioning conflicts.
- Docker and Docker Compose installed on the host machine.
- The host machine must have the following directories created for persistent data storage:
/Volumes/data/InFluxDB_data/Volumes/data/Grafana_data(Note: Ensure the Docker daemon has read/write permissions for these directories).
- Clone or download this repository to your host machine.
- Open a terminal and navigate to the directory containing the
docker-compose.ymlfile. - Start the stack in detached mode:
docker compose up -d
To stop the stack:
docker compose downURL: http://<host-ip>:3000 (http://localhost:3000 if using same machine)
InfluxDB 3 Core
URL: http://<host-ip>:80
Both services run on a shared custom bridge network (influx-net) allowing them to communicate securely with each other.
- InfluxDB (influxdb3-core)
- Image: influxdb:3-core
- Ports: Exposed on host port 80 (maps to container port 8181).
- Storage: Data is persistently stored on the host at /Volumes/data/InFluxDB_data.
- Configuration: Configured to use local file object storage (--object-store=file) and initialized with a predefined Operator/API token via environment variables.
- Grafana (grafana)
- Image: grafana/grafana:latest
- Ports: Exposed on host port 3000.
- Storage: Data (dashboards, users, data source configurations) is persistently stored on the host at /Volumes/data/Grafana_data.
- Dependencies: Grafana is configured to wait for InfluxDB to start before initializing.