added watchtower and portainer
This commit is contained in:
@@ -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 * * *"
|
||||
|
||||
Reference in New Issue
Block a user