mirror of
https://github.com/basnijholt/compose-farm.git
synced 2026-02-03 06:03:25 +00:00
A minimal CLI tool to run docker compose commands across multiple hosts via SSH. Features: - Pydantic config parsing (hosts, services mapping) - asyncssh for parallel command execution with streaming output - Typer CLI with up, down, pull, restart, update, logs, ps commands - Config search: ./sdc.yaml or ~/.config/sdc/sdc.yaml
23 lines
469 B
YAML
23 lines
469 B
YAML
# Example SDC configuration
|
|
# Copy to ~/.config/sdc/sdc.yaml or ./sdc.yaml
|
|
|
|
compose_dir: /opt/compose
|
|
|
|
hosts:
|
|
# Full form with all options
|
|
nas01:
|
|
address: 192.168.1.10
|
|
user: docker
|
|
port: 22
|
|
|
|
# Short form (just address, user defaults to current user)
|
|
nas02: 192.168.1.11
|
|
|
|
services:
|
|
# Map service names to hosts
|
|
# Compose file expected at: {compose_dir}/{service}/docker-compose.yml
|
|
plex: nas01
|
|
jellyfin: nas02
|
|
sonarr: nas01
|
|
radarr: nas02
|