website/_posts/2021-08-07-docker-watchtower.md
2021-08-31 18:26:27 +02:00

32 lines
583 B
Markdown

---
layout: post
title: "WatchTower"
description: "Docker WatchTower"
author: sthope
image: "watchtower-logo.png"
categories: [ Docker, WatchTower ]
comments: true
---
# WatchTower
1. Create and run Portainer Stack:
```yaml
---
version: "3.8"
services:
watchtower:
container_name: watchtower
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TZ=Europe/Amsterdam
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=86400
- WATCHTOWER_LABEL_ENABLE=true
```