Files
R-clone-setup/send-to-friend/agent-deploy/docker-compose.yml

31 lines
1.3 KiB
YAML

# =============================================================================
# AGENT-ONLY BUNDLE — for a machine that ALREADY runs the production
# rclone-synology-sync container (e.g. JAGAN's test machine).
# Adds monitoring only; touches nothing in the existing stack.
#
# 1. Copy this folder + the repo's monitor/agent/ folder to the machine:
# agent-deploy/
# ├── docker-compose.yml (this file)
# ├── .env (from .env.example)
# └── agent/ (= monitor/agent/: agent.py + Dockerfile)
# 2. Fill .env
# 3. docker compose up -d --build
# =============================================================================
services:
rclone-agent:
build: ./agent
container_name: rclone-agent
environment:
- MACHINE_ID=${MACHINE_ID}
- SITE=${SITE}
- COLLECTOR_URL=${COLLECTOR_URL}
- AGENT_TOKEN=${AGENT_TOKEN}
- WATCH_DIRS=/sources/image_root_dir,/sources/csv_files
volumes:
# the EXISTING sync container's log folder (read-only)
- ${SYNC_LOGS_DIR}:/logs:ro
# the up-pair source folders (read-only) — enables pending/missing detection
- ${IMAGE_DIR}:/sources/image_root_dir:ro
- ${CSV_DIR}:/sources/csv_files:ro
restart: unless-stopped