Pull-based GitOps-style Docker Compose deployer: polls a (private) Git repo, detects changed stacks and reconciles only the affected
1[Unit]
2Description=compose-sync - Sync and deploy Docker Compose stacks from git
3After=network-online.target docker.service
4Wants=network-online.target
5
6[Service]
7Type=oneshot
8# Replace 'youruser' with the actual user that should run compose-sync
9User=youruser
10# Path to compose-sync binary (adjust if installed elsewhere)
11# If config.yml is not in the default location, add: -config /path/to/config.yml
12ExecStart=/usr/local/bin/compose-sync
13Environment="HOME=/home/youruser"
14WorkingDirectory=/home/youruser
15StandardOutput=journal
16StandardError=journal
17