mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
51 lines
806 B
Markdown
51 lines
806 B
Markdown
# Watchtower
|
|
|
|
**WORK IN PROGRESS**
|
|
|
|
url: https://containrrr.dev/watchtower/
|
|
dockerhub: https://hub.docker.com/r/containrrr/watchtower/tags
|
|
|
|
Must be run as root, caution it has access to all your containers, not per domain/project.
|
|
|
|
## Project Setup
|
|
|
|
```yaml
|
|
version: '3.4'
|
|
|
|
services:
|
|
|
|
watchtower:
|
|
extends:
|
|
file: ${COOKBOOK}/watchtower/docker-compose.yml
|
|
service: watchtower
|
|
env_file:
|
|
- .env
|
|
```
|
|
|
|
### env setup
|
|
|
|
```text
|
|
# Local
|
|
COOKBOOK=/home/user/git/docker-compose-cookbooks
|
|
WATCHTOWER_IMAGE=containrrr/watchtower:1.7.1
|
|
|
|
# Container Optional
|
|
REPO_USER=username
|
|
REPO_PASS=password
|
|
```
|
|
|
|
## Container selection
|
|
|
|
|
|
```yaml
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
|
```
|
|
|
|
Monitor Only
|
|
```yaml
|
|
labels:
|
|
- com.centurylinklabs.watchtower.monitor-only="true"
|
|
```
|
|
|