-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.watchtower.yml
More file actions
43 lines (41 loc) · 1.61 KB
/
docker-compose.watchtower.yml
File metadata and controls
43 lines (41 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ==============================================================================
# MeticAI Watchtower Sidecar
# ==============================================================================
# Adds automatic Docker image updates via Watchtower.
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.watchtower.yml up -d
#
# Features:
# - Automatic updates check every 6 hours
# - Manual update trigger via HTTP API
# - Only updates containers with watchtower.enable=true label
# ==============================================================================
services:
watchtower:
image: containrrr/watchtower:latest
container_name: meticai-watchtower
restart: unless-stopped
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_LABEL_ENABLE=true # Only update labeled containers
- WATCHTOWER_HTTP_API_TOKEN=${WATCHTOWER_TOKEN}
- WATCHTOWER_HTTP_API_UPDATE=true
- DOCKER_API_VERSION=1.44
volumes:
# Linux/macOS: /var/run/docker.sock
# Windows (Docker Desktop): //./pipe/docker_engine:/var/run/docker.sock
# Uncomment the appropriate line for your platform:
- /var/run/docker.sock:/var/run/docker.sock:ro
# - //./pipe/docker_engine:/var/run/docker.sock:ro # Windows
ports:
- "${WATCHTOWER_HOST_PORT:-127.0.0.1:18088}:8080" # HTTP API — localhost only; configurable to avoid conflicts
logging:
driver: json-file
options:
max-size: "5m"
max-file: "2"
command: --http-api-metrics --http-api-periodic-polls --interval 21600
meticai:
environment:
- WATCHTOWER_TOKEN=${WATCHTOWER_TOKEN:-}