Skip to content

Commit 2ea3d58

Browse files
committed
[no-ci] Add watchtower
1 parent 53dafce commit 2ea3d58

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
services:
2+
watchtower:
3+
image: containrrr/watchtower
4+
command:
5+
- "--label-enable"
6+
- "--interval"
7+
- "30"
8+
- "--rolling-restart"
9+
volumes:
10+
- /var/run/docker.sock:/var/run/docker.sock
11+
212
docktainer:
313
image: ghcr.io/firstdarkdev/docktainer:latest
414
#build: .
515
container_name: "docktainer"
6-
restart: unless-stopped
16+
restart: always
17+
labels:
18+
- "com.centurylinklabs.watchtower.enable=true"
719
ports:
820
- 80:80
921
- 443:443

0 commit comments

Comments
 (0)