diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index d9b31a9..09187ad 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -72,7 +72,7 @@ OPENAI_MODEL=gpt-5-nano-2025-08-07 OPENAI_API_BASE=https://api.openai.com/v1 # Redis -REDIS_URL=redis://redis:6379/0 +REDIS_URL=redis://redis:6380/0 # Rate Limiting (adjust as needed) RATE_LIMIT_PER_MINUTE=30 @@ -155,7 +155,7 @@ services: - ./backend/.env environment: - DATABASE_URL=postgresql+asyncpg://apac_ops_bot:${POSTGRES_PASSWORD}@postgres:5432/apac_ops_bot - - REDIS_URL=redis://:${REDIS_PASSWORD}@redis:6379/0 + - REDIS_URL=redis://:${REDIS_PASSWORD}@redis:6380/0 depends_on: postgres: condition: service_healthy diff --git a/QUICKSTART.md b/QUICKSTART.md index 8fb6872..ebf1b67 100644 --- a/QUICKSTART.md +++ b/QUICKSTART.md @@ -184,7 +184,7 @@ apac-ops-bot/ **Solution:** ```bash # Check what's using the port -lsof -i :8048 # or :5432, :6379 +lsof -i :8048 # or :5432, :6380 # Stop existing containers docker-compose down diff --git a/README.md b/README.md index 16c3be1..f590d31 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ docker-compose up --build This will start: - PostgreSQL (port 5432) -- Redis (port 6379) +- Redis (port 6380) - Backend API (port 8048) - Frontend (port 3000) diff --git a/backend/.env.example b/backend/.env.example index d98f1f6..01831a2 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -21,7 +21,7 @@ OPENAI_MODEL=gpt-5-nano-2025-08-07 OPENAI_API_BASE=https://api.openai.com/v1 # Redis -REDIS_URL=redis://localhost:6379/0 +REDIS_URL=redis://localhost:6380/0 # Rate Limiting RATE_LIMIT_PER_MINUTE=30 diff --git a/backend/app/config.py b/backend/app/config.py index 90cddf4..7f02721 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -33,7 +33,7 @@ class Settings(BaseSettings): OPENAI_API_BASE: str = "https://api.openai.com/v1" # Redis - REDIS_URL: str = "redis://localhost:6379/0" + REDIS_URL: str = "redis://localhost:6380/0" # Rate Limiting RATE_LIMIT_PER_MINUTE: int = 30 diff --git a/backend/tests/test_config.py b/backend/tests/test_config.py index f929492..2fd3485 100644 --- a/backend/tests/test_config.py +++ b/backend/tests/test_config.py @@ -93,10 +93,10 @@ def test_settings_redis_url(): SECRET_KEY="test-secret", DATABASE_URL="postgresql+asyncpg://user:pass@localhost/db", OPENAI_API_KEY="sk-test-key", - REDIS_URL="redis://localhost:6379/0", + REDIS_URL="redis://localhost:6380/0", ) - assert settings.REDIS_URL == "redis://localhost:6379/0" + assert settings.REDIS_URL == "redis://localhost:6380/0" def test_settings_cors_origins(): diff --git a/docker-compose.yml b/docker-compose.yml index 2d5d14b..d919fb0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ services: image: redis:7-alpine container_name: apac_ops_bot_redis ports: - - "6379:6379" + - "6380:6379" healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s