mirror of
https://github.com/basnijholt/compose-farm.git
synced 2026-02-03 14:13:26 +00:00
* restart: Match Docker Compose semantics Change `cf restart` from doing `down + up` to using `docker compose restart`, matching the Docker Compose command behavior. This provides command naming parity with Docker Compose. Users who want the old behavior can use `cf down mystack && cf up mystack`. - Update restart implementation to use `docker compose restart` - Remove traefik regeneration from restart (no longer recreates containers) - Update all documentation and help text - Remove restart from self-update SSH handling (no longer involves down) * web: Clarify Update tooltip uses 'recreate' not 'restart' Avoid confusion now that 'restart' means something different. * web: Fix Update All tooltip to use 'recreates'
31 lines
875 B
YAML
31 lines
875 B
YAML
# Example Compose Farm configuration
|
|
# Copy to ~/.config/compose-farm/compose-farm.yaml or ./compose-farm.yaml
|
|
|
|
compose_dir: /opt/compose
|
|
|
|
# Optional: Auto-regenerate Traefik file-provider config after up/down/update
|
|
traefik_file: /opt/traefik/dynamic.d/compose-farm.yml
|
|
traefik_stack: traefik # Skip stacks on same host (docker provider handles them)
|
|
|
|
hosts:
|
|
# Full form with all options
|
|
server-1:
|
|
address: 192.168.1.10
|
|
user: docker
|
|
port: 22
|
|
|
|
# Short form (just address, user defaults to current user)
|
|
server-2: 192.168.1.11
|
|
|
|
# Local execution (no SSH)
|
|
local: localhost
|
|
|
|
stacks:
|
|
# Map stack names to hosts
|
|
# Compose file expected at: {compose_dir}/{stack}/compose.yaml
|
|
traefik: server-1 # Traefik runs here
|
|
plex: server-2 # Stacks on other hosts get file-provider entries
|
|
jellyfin: server-2
|
|
grafana: server-1
|
|
nextcloud: local
|