container-server/services/watchtower/docker-compose.yml
Carsten Sprung 7f5755b537 fix: Remove hostnames from docker-compose configs (#76)
- [x] This fixes services being not reachable from inside their own container
- [x] Container name must be different to URL hostname

Reviewed-on: #76
2024-09-30 17:27:30 +02:00

27 lines
836 B
YAML

version: '3.7'
# https://hub.docker.com/r/containrrr/watchtower
# https://containrrr.dev/watchtower/
services:
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: "${RESTART:-no}"
domainname: ${BASE_DOMAIN}
environment:
- TZ=${TIMEZONE}
- WATCHTOWER_SCHEDULE=0 0 4 * * *
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=watchtower@${BASE_DOMAIN}
- WATCHTOWER_NOTIFICATION_EMAIL_TO=admin@${BASE_DOMAIN}
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=post.${BASE_DOMAIN}
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=25
- WATCHTOWER_NOTIFICATION_EMAIL_DELAY=20
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/.docker/config.json:/config.json:ro
networks:
- mail