File size: 544 Bytes
1233552
1e6288e
2f6d9ae
 
 
 
 
1e6288e
 
 
 
2f6d9ae
 
1e6288e
2f6d9ae
 
1e6288e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# Start the Redis server in the background WITH PERSISTENCE DISABLED
# The '--save ""' command tells Redis not to create any RDB snapshots.
redis-server --daemonize yes --save "" --appendonly no

echo "Redis started with persistence disabled."

# Start the Celery worker in the background
celery -A celery_worker.celery worker --loglevel=info &

echo "Celery worker started."

# Start the FastAPI server in the foreground
# This keeps the container alive.
echo "Starting FastAPI server..."
uvicorn main:app --host 0.0.0.0 --port 7860