69 lines
2.7 KiB
YAML
69 lines
2.7 KiB
YAML
# =============================================================================
|
|
# Docker Compose Local Development Overrides
|
|
# =============================================================================
|
|
# Usage: docker compose -f docker-compose.yml -f docker-compose.local.yml up -d
|
|
# Or use: ./scripts/run-local.sh
|
|
# =============================================================================
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
# ---------------------------------------------------------------------------
|
|
# MongoDB - Local Development Settings
|
|
# ---------------------------------------------------------------------------
|
|
mongodb:
|
|
# No resource limits for local development
|
|
# Expose port for direct access (optional, for debugging with MongoDB Compass)
|
|
ports:
|
|
- "27017:27017"
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Redis - Local Development Settings
|
|
# ---------------------------------------------------------------------------
|
|
redis:
|
|
# No resource limits for local development
|
|
# Expose port for direct access (optional, for debugging with Redis CLI)
|
|
ports:
|
|
- "6379:6379"
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# API - Local Development Settings
|
|
# ---------------------------------------------------------------------------
|
|
api:
|
|
# No resource limits for local development
|
|
# Build without cache for fresh builds
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
target: api
|
|
# Optional: Uncomment to disable cache during development
|
|
# args:
|
|
# - BUILDKIT_INLINE_CACHE=0
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Worker - Local Development Settings
|
|
# ---------------------------------------------------------------------------
|
|
worker:
|
|
# No resource limits for local development
|
|
# Build without cache for fresh builds
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
target: worker
|
|
# Optional: Uncomment to disable cache during development
|
|
# args:
|
|
# - BUILDKIT_INLINE_CACHE=0
|
|
|
|
# =============================================================================
|
|
# LOCAL DEVELOPMENT NOTES
|
|
# =============================================================================
|
|
# This override file:
|
|
# - Removes production resource limits
|
|
# - Exposes MongoDB (27017) and Redis (6379) ports for local tools
|
|
# - Keeps all volume mounts for data persistence
|
|
# - Uses same environment variables from .env.local
|
|
#
|
|
# To start: ./scripts/run-local.sh
|
|
# To stop: docker compose down
|
|
# To view logs: docker compose logs -f [service]
|
|
# =============================================================================
|