Run your stack:
# more docker-compose.yml
version: '3'
services:
influxdb:
image: ${REPO:-docker.io}/influxdb:latest
container_name: influxdb
ports:
- "8086:8086"
- "8090:8090"
environment:
- TZ=Asia/Shanghai
- INFLUXDB_DATA_ENGINE=tsm1
- INFLUXDB_REPORTING_DISABLED=false
volumes:
- influxdb:/var/lib/influxdb
telegraf:
image: ${REPO:-docker.io}/telegraf:latest
container_name: telegraf
network_mode: host
links:
- influxdb
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
grafana:
image: ${REPO:-docker.io}/testerq/grafana:latest
environment:
- TZ=Asia/Shanghai
container_name: grafana
ports:
- "3000:3000"
links:
- influxdb
volumes:
- grafana:/var/lib/grafana
volumes:
influxdb:
grafana:
# docker-compose up -d
Show me the logs:
docker-compose logs
Stop and remove it:
docker-compose down
Update it:
git pull
docker pull testerq/grafana
docker pull influxdb
docker pull telegraf
If you want to run Telegraf, edit the telegraf.conf to yours needs and:
docker exec telegraf telegraf
access http://your-ip:3000
u/p: admin/admin
https://hub.docker.com/_/influxdb/

Content type
Image
Digest
Size
93.5 MB
Last updated
almost 8 years ago
docker pull testerq/grafana