You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
I have a question that I think should be simple, but I can't seem to get it to work.
I'm using a docker-compose file to start my server, and everything is working well from a functionality perspective. However, I'm not seeing any logs after the litestar-1 | INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit) message.
I've tried tweaking various settings, but nothing has worked so far.
Here is my dockerfile and compose file, any light on this subject is apperciated.
# Minimal Dockerfile for the API serviceFROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
APP_PORT=8000
WORKDIR /app
# Install system deps if needed (curl, build tools) - kept minimalRUN pip install --no-cache-dir --upgrade pip
# Copy only what is necessaryCOPY requirements.txt ./requirements.txt
COPY ex ./ex
COPY app.py ./app.py
COPY openapi.yaml ./openapi.yaml
COPY logging.conf ./logging.conf
# Install PyTorch packages with CUDA support from PyTorch index firstRUN pip install --no-cache-dir torch==2.8.0+cu128 torchaudio==2.8.0+cu128 torchvision==0.23.0+cu128 --index-url https://download.pytorch.org/whl/cu128
# Create requirements file without torch-related packages and install other dependenciesRUN grep -v -E "torch.*==" requirements.txt > /tmp/requirements_no_torch.txt && \
pip install --no-cache-dir -r /tmp/requirements_no_torch.txt
EXPOSE 8000
CMD ["litestar", "run", "--host", "0.0.0.0", "--port", "8000", "--debug"]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I have a question that I think should be simple, but I can't seem to get it to work.
I'm using a
docker-compose
file to start my server, and everything is working well from a functionality perspective. However, I'm not seeing any logs after thelitestar-1 | INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
message.I've tried tweaking various settings, but nothing has worked so far.
Here is my dockerfile and compose file, any light on this subject is apperciated.
I have this api to test logging:
Failed to see any log. (I do get a
{"status": "ok"}
from server.)I am using
to create logger, and the config file looks like this:
Beta Was this translation helpful? Give feedback.
All reactions