Skip to content

Commit 7a8d4ed

Browse files
committed
Updating docker compose for watchtower
1 parent e403eb9 commit 7a8d4ed

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docker-compose.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,16 @@ services:
44
image: ghcr.io/opensource-force/osf-site:latest
55
restart: always
66
ports:
7-
- 9090:3000
7+
- 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

Comments
 (0)