File size: 357 Bytes
1cf3e52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e

echo "=== Starting Redis (2GB max, LRU eviction) ==="
redis-server \
  --daemonize yes \
  --maxmemory 2gb \
  --maxmemory-policy allkeys-lru \
  --save "" \
  --loglevel warning

echo "=== Redis started on localhost:6379 ==="
redis-cli ping

echo "=== Starting FastAPI on port 7860 ==="
exec uvicorn main:app --host 0.0.0.0 --port 7860