move db to volume

This commit is contained in:
2025-05-25 22:24:40 +02:00
parent fc3cf3dc05
commit 4170eb14fb
2 changed files with 3 additions and 1 deletions

View File

@@ -2,6 +2,8 @@ FROM python:3.13-alpine
ENV PYTHONUNBUFFERED=1
VOLUME /data
WORKDIR /app/
# Install uv

View File

@@ -4,7 +4,7 @@ import os
class Settings(BaseSettings):
API_V1_STR: str = ""
PROJECT_NAME: str = "Choriosity Anmeldung"
SQLALCHEMY_DATABASE_URI: str = "sqlite:///" + os.environ.get("DATABASE_URL", "./db.sqlite")
SQLALCHEMY_DATABASE_URI: str = "sqlite:///" + os.environ.get("DATABASE_URL", "/data/db.sqlite")
settings = Settings()