add watchtower in example compose file

pull/13/head
Up 6 months ago
parent 4430a18dae
commit c06b1496a3
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388

@ -10,6 +10,7 @@ services:
- internal
ports:
- "8001:8001"
db:
image: mariadb:11
restart: unless-stopped
@ -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:

Loading…
Cancel
Save