Introducing Postgresql for persistance
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 32s

This commit is contained in:
Tudor Sitaru
2026-01-06 17:15:43 +00:00
parent bd3640d50f
commit 52fbade30c
6 changed files with 492 additions and 213 deletions

View File

@@ -4,7 +4,7 @@ Loads from environment variables and .env file.
"""
from pathlib import Path
from typing import List
from typing import List, Optional
from pydantic_settings import BaseSettings
import os
@@ -20,6 +20,9 @@ class Settings(BaseSettings):
host: str = "0.0.0.0"
port: int = 80
# Database
database_url: str = "postgresql://schoolcompare:schoolcompare@localhost:5432/schoolcompare"
# CORS
allowed_origins: List[str] = ["https://schoolcompare.co.uk", "http://localhost:8000", "http://localhost:3000"]