Fix root cause: config.py default had password 'fitness', DB uses trust auth
The actual bug: config.py default database_url included ':fitness' password. When Coolify doesn't pass DATABASE_URL env var to the container, pydantic_settings falls back to this default, which PostgreSQL rejects because the DB initialized with trust authentication (no password). Fix: removed password from default database_url in config.py. Also removed unnecessary custom db/Dockerfile.
This commit is contained in:
parent
3684e50ac6
commit
c386befad2
3 changed files with 7 additions and 14 deletions
|
|
@ -5,8 +5,8 @@ from functools import lru_cache
|
|||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# Database
|
||||
database_url: str = "postgresql+asyncpg://fitness:fitness@db:5432/fitness_rewards"
|
||||
# Database - default uses trust auth (no password) matching Coolify's postgres setup
|
||||
database_url: str = "postgresql+asyncpg://fitness@db:5432/fitness_rewards"
|
||||
|
||||
# Auth
|
||||
secret_key: str = "change-me-in-production"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue