henriqueatila/golang-gin-best-practices / skills/golang-gin-architect
golang-gin-architect
VerifiedSoftware architect for Go Gin APIs. Use when making architecture decisions, evaluating complexity, designing systems, choosing patterns, or coordinating across gin skills.
references/messaging-consumer-docker.md
View on GitHub# Messaging — RabbitMQ Docker Compose Setup
Local development setup for RabbitMQ. Companion to `messaging-consumer-workqueues.md` (consumer pattern, competing consumers).
---
## Docker Compose — RabbitMQ for Dev
**Cost: LOW** — single-node is fine for local dev; never run single-node in production without persistence config.
```yaml
# docker-compose.yml (RabbitMQ section)
services:
rabbitmq:
image: rabbitmq:4-management-alpine
container_name: rabbitmq
ports:
- "5672:5672" # AMQP protocol
- "15672:15672" # Management UI (http://localhost:15672)
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
volumes:
- rabbitmq_data:/data
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
rabbitmq_data:
```
**Environment variable for app:**
```bash
RABBITMQ_URL=amqp://guest:guest@localhost:5672/
```
**Management UI credentials:** `guest / guest` at `http://localhost:15672`
---
## Useful CLI Tasks Inside Container
```bash
docker exec rabbitmq rabbitmqctl list_queues name messages consumers
docker exec rabbitmq rabbitmqctl list_exchanges
docker exec rabbitmq rabbitmqctl purge_queue email.send # dev only
```
---
## Cross-Skill References
| Topic | Reference |
|---|---|
| Consumer pattern + competing consumers | `messaging-consumer-workqueues.md` |
| Connection factory + reconnect | `messaging-rabbitmq-connection.md` |
| Dead letter queues | `messaging-dlq-setup.md` |
| Idempotent consumers | `messaging-dlq-idempotency.md` |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |