Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
hardcode credentials - temporary
added telegraf
  • Loading branch information
fcuiller authored Dec 16, 2020
1 parent 7e53300 commit 19fd46e
Showing 1 changed file with 45 additions and 27 deletions.
72 changes: 45 additions & 27 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,58 @@
version: '2'
version: "2"
services:
influxdb:
image: influxdb:latest
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: always
ports:
- '8086:8086'
- '3000:3000'
volumes:
- influxdb-storage:/var/lib/influxdb
- ./grafana-provisioning/:/etc/grafana/provisioning
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
influxdb:
image: influxdb
container_name: influxdb
restart: always
ports:
- 8086:8086
environment:
- INFLUXDB_DB=db0
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
- INFLUXDB_DB=telemetry
- INFLUXDB_USER=admin
- INFLUXDB_PASSWORD=admin
- INFLUXDB_ADMIN_ENABLED=true

- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=admin
chronograf:
image: chronograf:latest
container_name: chronograf
ports:
- '127.0.0.1:8888:8888'
volumes:
- chronograf-storage:/var/lib/chronograf
- '8888:8888'
depends_on:
- influxdb
environment:
- INFLUXDB_URL=http://influxdb:8086
- INFLUXDB_USERNAME=${INFLUXDB_USERNAME}
- INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD}
grafana:
image: grafana/grafana:latest
- INFLUXDB_USERNAME=admin
- INFLUXDB_PASSWORD=admin
telegraf:
image: telegraf
container_name: telegraf
restart: always
ports:
- '3000:3000'
volumes:
- grafana-storage:/var/lib/grafana
- ./grafana-provisioning/:/etc/grafana/provisioning
depends_on:
- influxdb
- '57000:57000'
- '57100:57100'
- '57500:57500'
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_USERNAME}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
volumes:
influxdb-storage:
chronograf-storage:
grafana-storage:
HOST_PROC: /rootfs/proc
HOST_SYS: /rootfs/sys
HOST_ETC: /rootfs/etc
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/rootfs/sys:ro
- /proc:/rootfs/proc:ro
- /etc:/rootfs/etc:ro

0 comments on commit 19fd46e

Please sign in to comment.