version: '3.0' services: portainer: container_name: portainer image: portainer/portainer-ce:alpine network_mode: bridge ports: - "9000:9000/tcp" volumes: - /etc/localtime/:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock - ~/docker/portainer:/data restart: always watchtower: container_name: watchtower image: containrrr/watchtower:latest network_mode: bridge volumes: - /etc/localtime:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock environment: WATCHTOWER_NOTIFICATION_EMAIL_FROM = info@{domain} WATCHTOWER_NOTIFICATION_EMAIL_TO=user@{domain} WATCHTOWER_NOTIFICATION_EMAIL_SERVER=mail.{domain} WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=465 WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=info WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD={passwd} WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2 WATCHTOWER_NOTIFICATIONS=email WATCHTOWER_SCHEDULE=0 0 0 * * 6 WATCHTOWER_CLEANUP=true restart: unless-stopped