Change Redis host port from 6379 to 6380 to avoid port conflict

Existing Redis instance was using port 6379, causing Docker container
startup failures. Changed host-exposed port to 6380 while keeping
internal container port at 6379.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
michael 2026-02-02 17:02:48 -06:00
parent c66d498d04
commit 7f1bc76123
7 changed files with 9 additions and 9 deletions

View file

@ -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

View file

@ -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

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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():

View file

@ -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