Files
pos-system/deployments/local/docker-compose.dev.yml
Ho Ngoc Hai 529c92e0e1
Some checks are pending
Build & Deploy to K8s / build-and-deploy (push) Waiting to run
feat(dev): hybrid local dev setup — remote PostgreSQL/MinIO, local Redis/RabbitMQ
Configure all 24 services to connect to remote staging PostgreSQL
(212.28.186.239:30992) and MinIO (minio.techbi.org) while running
Redis and RabbitMQ locally on non-standard ports (16379, 25672)
to avoid conflicts with other projects.

- Add .env.remote with hybrid connection strings
- Add docker-compose.dev.yml (lightweight Redis + RabbitMQ only)
- Add scripts/dev/start-dev.sh for one-command infra startup
- Update all appsettings.Development.json with remote DB + timeout
- Add .claude/launch.json for Claude Code preview (pos-web only)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 12:27:01 +07:00

58 lines
1.8 KiB
YAML

# =============================================================================
# GoodGo Platform - Lightweight Dev Infrastructure
# =============================================================================
# EN: Only Redis + RabbitMQ for local dev. PostgreSQL and MinIO are on remote.
# VI: Chỉ Redis + RabbitMQ cho local dev. PostgreSQL và MinIO ở remote server.
#
# Usage:
# docker compose -f docker-compose.dev.yml up -d
# docker compose -f docker-compose.dev.yml down
#
# Ports (non-standard to avoid conflicts):
# Redis: 16379 (instead of 6379)
# RabbitMQ: 25672 (AMQP), 35672 (Management UI)
# =============================================================================
services:
# Redis 7 - Cache & SignalR Backplane (dev)
redis-dev:
image: redis:7-alpine
container_name: goodgo-redis-dev
command: redis-server --requirepass goodgo-redis-dev --maxmemory 256mb --maxmemory-policy allkeys-lru
ports:
- "16379:6379"
volumes:
- redis_dev_data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "-a", "goodgo-redis-dev", "ping"]
interval: 10s
timeout: 5s
retries: 5
# RabbitMQ 3 - Message Broker (dev)
rabbitmq-dev:
image: rabbitmq:3-management-alpine
container_name: goodgo-rabbitmq-dev
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=goodgo-rabbitmq-dev
ports:
- "25672:5672" # AMQP
- "35672:15672" # Management UI
volumes:
- rabbitmq_dev_data:/var/lib/rabbitmq
restart: unless-stopped
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 15s
timeout: 10s
retries: 5
start_period: 30s
volumes:
redis_dev_data:
driver: local
rabbitmq_dev_data:
driver: local