added watchtower and portainer

This commit is contained in:
John Lancaster
2024-02-18 19:35:30 -06:00
parent dda67bb3d0
commit eaec49927b
2 changed files with 27 additions and 6 deletions

View File

@@ -1,5 +1,15 @@
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
@@ -24,3 +34,12 @@ services:
command:
- "-config.file=/etc/promtail/promtail-config.yml"
- "-config.expand-env=true"
watchtower:
image: containrrr/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 * * *"