Got the main.py tied into the backend now.

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-08-21 09:27:30 -04:00
parent e15b62fae3
commit 51c1c97f20
3 changed files with 10 additions and 2 deletions

View File

@@ -51,4 +51,4 @@ COPY src/ src/
# Start fastapi application using uvicorn
EXPOSE 8000
ENV PYTHONPATH=/app/src
CMD ["uvicorn", "backend:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]

View File

@@ -0,0 +1,8 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Welcome to the Numinar Coding Project Backend!"}

View File

@@ -9,7 +9,7 @@ services:
- ./backend/pyproject.toml:/app/pyproject.toml
ports:
- "8000:8000"
command: ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
command: ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
restart: always
logging:
driver: "json-file"