We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e403eb9 commit 7a8d4edCopy full SHA for 7a8d4ed
docker-compose.yaml
@@ -4,4 +4,16 @@ services:
4
image: ghcr.io/opensource-force/osf-site:latest
5
restart: always
6
ports:
7
- - 9090:3000
+ - 9090:3000
8
+ labels:
9
+ - "com.centurylinklabs.watchtower.enable=true"
10
+ watchtower:
11
+ container_name: watchtower
12
+ image: containrrr/watchtower
13
+ restart: always
14
+ volumes:
15
+ - /var/run/docker.sock:/var/run/docker.sock
16
+ environment:
17
+ - WATCHTOWER_INTERVAL=21600 # Check every 6 hours (in seconds)
18
+ - WATCHTOWER_CLEANUP=true # Remove old images to save disk space
19
+ - WATCHTOWER_LABEL_ENABLE=true # Only watch containers with the watchtower label
0 commit comments