Skip to content

Commit

Permalink
add watchtower in example compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed May 12, 2024
1 parent 4430a18 commit c06b149
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker-compose.Example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
- internal
ports:
- "8001:8001"

db:
image: mariadb:11
restart: unless-stopped
Expand All @@ -30,6 +31,22 @@ services:
networks:
- internal

# Watchtower is a service that will automatically update your running containers
# when a new image is available. This is useful for keeping your server up-to-date.
# see https://containrrr.dev/watchtower/ for more information.
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: always
security_opt:
- no-new-privileges:true
environment:
WATCHTOWER_CLEANUP: true
WATCHTOWER_SCHEDULE: "@midnight"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock

volumes:
database:

Expand Down

0 comments on commit c06b149

Please sign in to comment.