mirror of
https://github.com/muerwre/muerwre.github.io.git
synced 2025-04-25 02:46:39 +07:00
17 lines
No EOL
527 B
Markdown
17 lines
No EOL
527 B
Markdown
## Setting up watchtower
|
|
|
|
[Watchtower](https://containrrr.dev/watchtower/) will automatically pull updated #docker containers. Can be used with [Private docker registry](Private%20docker%20registry.md) and [Drone-ci](Drone-ci.md).
|
|
|
|
```yaml
|
|
version: "3"
|
|
|
|
services:
|
|
watchtower:
|
|
container_name: docker__watchtower
|
|
image: v2tec/watchtower
|
|
restart: always
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /home/user/.docker/config.json:/config.json
|
|
command: --interval 60 image_1 image_2
|
|
``` |