We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f4c0a4 commit 86312e7Copy full SHA for 86312e7
app/config.py
@@ -6,10 +6,10 @@
6
7
class Settings(BaseSettings):
8
POSTGRES_HOSTNAME: str
9
- POSTGRES_USER: str
10
- POSTGRES_PASSWORD: str
11
- POSTGRES_DB: str
12
- DATABASE_PORT: int
+ POSTGRES_USER: str = "postgres"
+ POSTGRES_PASSWORD: str = "password"
+ POSTGRES_DB: str = "fastapi"
+ DATABASE_PORT: int = 5432
13
API_KEY: str
14
15
class Config:
docker-compose.yml
@@ -14,7 +14,7 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
16
healthcheck:
17
- test: ["CMD-SHELL", "pg_isready -U user"]
+ test: ["CMD-SHELL", "pg_isready -U postgres"]
18
interval: 10s
19
timeout: 5s
20
retries: 5
0 commit comments