server: started updating documentation

This commit is contained in:
2023-10-27 20:08:00 +02:00
committed by Mathieu Virbel
parent d8a842f099
commit e405ccb8f3
4 changed files with 46 additions and 16 deletions

View File

@@ -1,15 +1,23 @@
version: "3.9"
services:
# server:
# build:
# context: .
# ports:
# - 1250:1250
# environment:
# LLM_URL: "${LLM_URL}"
# MIN_TRANSCRIPT_LENGTH: "${MIN_TRANSCRIPT_LENGTH}"
# volumes:
# - model-cache:/root/.cache
server:
build:
context: .
ports:
- 1250:1250
volumes:
- model-cache:/root/.cache
environment:
ENTRYPOINT: server
REDIS_HOST: redis
worker:
build:
context: .
volumes:
- model-cache:/root/.cache
environment:
ENTRYPOINT: worker
REDIS_HOST: redis
redis:
image: redis:7.2
ports:

View File

@@ -4,4 +4,11 @@ if [ -f "/venv/bin/activate" ]; then
source /venv/bin/activate
fi
alembic upgrade head
python -m reflector.app
if [ "${ENTRYPOINT}" = "server" ]; then
python -m reflector.app
elif [ "${ENTRYPOINT}" = "worker" ]; then
celery -A reflector.worker.app worker --loglevel=info
else
echo "Unknown command"
fi