48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
version: '3.9'
|
|
services:
|
|
portainer-agent:
|
|
image: portainer/agent
|
|
container_name: portainer_agent
|
|
restart: always
|
|
ports:
|
|
- 9001:9001
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
|
|
|
telegraf-docker:
|
|
image: telegraf
|
|
restart: unless-stopped
|
|
uts: host
|
|
user: telegraf:${DOCKER_GUID}
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
promtail:
|
|
image: grafana/promtail
|
|
container_name: promtail
|
|
restart: unless-stopped
|
|
uts: host
|
|
env_file:
|
|
- .env
|
|
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"
|
|
- "-config.expand-env=true"
|
|
|
|
watchtower:
|
|
image: containrrr/watchtower
|
|
container_name: watchtower
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
environment:
|
|
WATCHTOWER_SCHEDULE: "0 3 * * *"
|