Fix used schema for postgres in Database URL

This commit is contained in:
Ēriks K 2025-04-05 13:09:54 +03:00
parent 3bd1c5e88f
commit e073b27bb1
3 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@
# `SERVICE_DATABASE_URL`
*Optional*, default value: `psql://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}`
*Optional*, default value: `asyncpg://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}`
# `SERVICE_TIMEZONE`

View File

@ -7,13 +7,13 @@ service:
token_expiration_days: 28
cors_origins:
- "http://localhost:5000"
- "https://example.com"
- "https://{{ cookiecutter.project_slug }}.xyz"
environment: "local"
log_level: "DEBUG"
redis_url: "redis://redis:6379"
database_url: "psql://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}"
database_url: "asyncpg://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}"
timezone: "UTC"
sentry_url: null

View File

@ -24,7 +24,7 @@ class ProjectSettings(ProjectBaseSettings):
# Background task config
redis_url: RedisDsn = Field(RedisDsn(url="redis://redis:6379"))
database_url: str = Field("psql://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}")
database_url: str = Field("asyncpg://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}")
# Various
timezone: str = Field(