Agent skill
deploy
Deploy com Docker e verificacao
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/deploy-brunoccteixeira-ta-na-mao
SKILL.md
Comandos
# Desenvolvimento local
docker compose up -d
# Producao
docker compose -f docker-compose.prod.yml up -d
# Rebuild apos mudancas
docker compose up -d --build
Health Checks
Verificar Servicos
# API Backend
curl http://localhost:8000/health
# PostgreSQL
docker compose exec db pg_isready
# Redis
docker compose exec redis redis-cli PING
Verificar Logs
# Todos os servicos
docker compose logs -f
# Servico especifico
docker compose logs -f backend
docker compose logs -f db
docker compose logs -f redis
Rollback
Voltar para versao anterior
# Parar servicos
docker compose down
# Voltar codigo
git checkout HEAD~1
# Reiniciar
docker compose up -d --build
Backup do banco antes de deploy
docker compose exec db pg_dump -U postgres tanamao > backup_$(date +%Y%m%d).sql
Troubleshooting
| Problema | Causa Provavel | Solucao |
|---|---|---|
| Container nao inicia | Porta ocupada | lsof -i :8000 e matar processo |
| DB connection refused | PostgreSQL nao pronto | Aguardar ou docker compose restart db |
| Redis timeout | Redis nao iniciou | docker compose restart redis |
| Build falha | Cache corrompido | docker compose build --no-cache |
| .env nao carrega | Arquivo ausente | Copiar de .env.example |
Checklist Pre-Deploy
- Testes passando (
pytest backend/tests/) - Variaveis de ambiente configuradas
- Migrations aplicadas (
alembic upgrade head) - Backup do banco realizado
- Health check OK apos deploy
Arquivos
backend/Dockerfilebackend/docker-compose.yml(dev)backend/docker-compose.prod.yml(prod)backend/.env(nao commitar)backend/.env.example(template)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?