Skip to content

Instantly share code, notes, and snippets.

@possebon
Created December 19, 2025 17:51
Show Gist options
  • Select an option

  • Save possebon/60634beb64a23cd26194009192b38ed9 to your computer and use it in GitHub Desktop.

Select an option

Save possebon/60634beb64a23cd26194009192b38ed9 to your computer and use it in GitHub Desktop.
Open Source Infrastructure Stack - 22-essential-commands

Essential Commands Quick Reference

# Initialize infrastructure
tofu init && tofu apply

# Deploy all services
ansible-playbook playbooks/site.yml

# Deploy single environment
ansible-playbook playbooks/deploy-env-stack.yml -e env=production

# Check service status
docker service ls

# View logs
docker service logs <service-name>

These are the most commonly used commands for day-to-day operations and troubleshooting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment