Skip to content

Commit

Permalink
Updating docker compose for watchtower
Browse files Browse the repository at this point in the history
  • Loading branch information
DitchTurtL committed Dec 16, 2024
1 parent e403eb9 commit 7a8d4ed
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,16 @@ services:
image: ghcr.io/opensource-force/osf-site:latest
restart: always
ports:
- 9090:3000
- 9090:3000
labels:
- "com.centurylinklabs.watchtower.enable=true"
watchtower:
container_name: watchtower
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WATCHTOWER_INTERVAL=21600 # Check every 6 hours (in seconds)
- WATCHTOWER_CLEANUP=true # Remove old images to save disk space
- WATCHTOWER_LABEL_ENABLE=true # Only watch containers with the watchtower label

0 comments on commit 7a8d4ed

Please sign in to comment.