good first cut

This commit is contained in:
root
2023-11-20 17:37:32 -06:00
parent b739bd918b
commit c1c8b30c02
4 changed files with 245 additions and 0 deletions

23
docker-compose.yml Normal file
View File

@@ -0,0 +1,23 @@
version: '3'
services:
telegraf:
container_name: telegraf-docker
image: telegraf
restart: unless-stopped
user: root:996
env_file:
- .env
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- influxdb
promtail:
image: grafana/promtail
restart: unless-stopped
volumes:
- ./promtail:/etc/promtail
- /var/run/docker.sock:/var/run/docker.sock
- /var/log:/var/log:ro
command: -config.file=/etc/promtail/promtail-config.yml