kopia lustrzana https://github.com/Haxxnet/Compose-Examples
chore: remove whitespaces; add optional influxdb v2
rodzic
14832b3e01
commit
f707a17e20
|
@ -2,7 +2,7 @@ services:
|
||||||
|
|
||||||
loki:
|
loki:
|
||||||
image: grafana/loki:2.9.11
|
image: grafana/loki:2.9.11
|
||||||
container_name: loki
|
container_name: loki
|
||||||
hostname: loki
|
hostname: loki
|
||||||
volumes:
|
volumes:
|
||||||
- ./volume-data/loki:/etc/loki # place loki-config.yml
|
- ./volume-data/loki:/etc/loki # place loki-config.yml
|
||||||
|
@ -12,14 +12,14 @@ services:
|
||||||
- 3100
|
- 3100
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: 1000:1000
|
user: 1000:1000
|
||||||
command: -config.file=/etc/loki/loki-config.yml
|
command: -config.file=/etc/loki/loki-config.yml
|
||||||
#networks:
|
#networks:
|
||||||
# - monitoring_default
|
# - monitoring_default
|
||||||
|
|
||||||
promtail:
|
promtail:
|
||||||
image: grafana/promtail:latest
|
image: grafana/promtail:latest
|
||||||
container_name: promtail
|
container_name: promtail
|
||||||
hostname: promtail
|
hostname: promtail
|
||||||
depends_on:
|
depends_on:
|
||||||
- loki
|
- loki
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -46,10 +46,30 @@ services:
|
||||||
#networks:
|
#networks:
|
||||||
# - monitoring_default
|
# - monitoring_default
|
||||||
|
|
||||||
|
#influxdb:
|
||||||
|
# image: influxdb:2.7
|
||||||
|
# container_name: influxdb2
|
||||||
|
# restart: unless-stopped
|
||||||
|
# expose:
|
||||||
|
# - 8086
|
||||||
|
# environment:
|
||||||
|
# - DOCKER_INFLUXDB_INIT_USERNAME=admin
|
||||||
|
# - DOCKER_INFLUXDB_INIT_PASSWORD=change-me-1 # <-- change this pw
|
||||||
|
# - DOCKER_INFLUXDB_INIT_ORG=influx-org
|
||||||
|
# - DOCKER_INFLUXDB_INIT_BUCKET=influx-bucket
|
||||||
|
# - DOCKER_INFLUXDB_INIT_RETENTION=30d
|
||||||
|
# - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=change-me-2 # <-- change this pw
|
||||||
|
# - DOCKER_INFLUXDB_INIT_MODE=setup
|
||||||
|
# volumes:
|
||||||
|
# - ./volume-data/influxdb2/data:/var/lib/influxdb2
|
||||||
|
# - ./volume-data/influxdb2/conf:/etc/influxdb2
|
||||||
|
# networks:
|
||||||
|
# - monitoring_default
|
||||||
|
|
||||||
telegraf:
|
telegraf:
|
||||||
image: telegraf:latest
|
image: telegraf:latest
|
||||||
container_name: telegraf
|
container_name: telegraf
|
||||||
hostname: telegraf
|
hostname: telegraf
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: telegraf:$(stat -c '%g' /var/run/docker.sock) # see: https://www.influxdata.com/blog/docker-run-telegraf-as-non-root/
|
user: telegraf:$(stat -c '%g' /var/run/docker.sock) # see: https://www.influxdata.com/blog/docker-run-telegraf-as-non-root/
|
||||||
dns:
|
dns:
|
||||||
|
@ -74,10 +94,10 @@ services:
|
||||||
# - monitoring_default
|
# - monitoring_default
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana-oss:latest
|
image: grafana/grafana-oss:12.0.0
|
||||||
container_name: grafana
|
container_name: grafana
|
||||||
hostname: grafana
|
hostname: grafana
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: 1000:1000
|
user: 1000:1000
|
||||||
depends_on:
|
depends_on:
|
||||||
- influxdb
|
- influxdb
|
||||||
|
|
Ładowanie…
Reference in New Issue