Skip to content

Commit

Permalink
feat(services): add facultative watchtower service
Browse files Browse the repository at this point in the history
  • Loading branch information
thislg committed Jul 10, 2024
1 parent 3429b18 commit d2655e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ The repository currently supports these message brokers:

- rabbitmq 3.8

An optional watchtower service is available to update docker images automatically. Add `watchtower.yml` to `COMPOSE_FILE` variable and set a schedule with `WATCHTOWER_SCHEDULE` variable in your `.env` file (default is `0 0 17 * * *`). You should also [login to your docker hub account](https://docs.docker.com/security/for-developers/access-tokens/#create-an-access-token) to prevent rate limit issues.

## Troubleshooting

Expand Down
9 changes: 9 additions & 0 deletions watchtower.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
restart: always
environment:
WATCHTOWER_SCHEDULE: ${WATCHTOWER_SCHEDULE-0 0 17 * * *}

0 comments on commit d2655e7

Please sign in to comment.