Command line utility to interact with your local and remote docker compose sites.
While Docker's native context feature handles basic daemon connections, sitectl is purpose-built for Docker Compose projects and adds:
- Enhanced remote operations: SFTP file operations (read env files, upload/download), sudo support, and helpful SSH error messages
- Container utilities: Resolve service names to containers, extract secrets/env vars to better support
execoperations inside containers, get container IPs within Docker networks - Plugin architecture: Extend
sitectlfor project-specific needs (e.g. islandora, drupal, etc.) - Service management: Enable/disable services in docker-compose.yml with automatic cleanup of orphaned resources and Drupal configuration
- Compose-first design: Set the equivalent of
DOCKER_HOST,COMPOSE_PROJECT_NAME,COMPOSE_FILE,COMPOSE_ENV_FILESautomatically based on sitectl context settings- See Docker's documentation for what these environment variables do
- The
configcommands for setting contexts were heavily inspired bykubectl