Browse Source

changed config to match that of docker

main
Madiwka3 1 year ago
parent
commit
65b5ccd866
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      app/core/config.py
  2. +1
    -0
      docker-compose.yml

+ 1
- 1
app/core/config.py View File

@@ -3,7 +3,7 @@ class Settings:
PROJECT_VERSION: str = "1.0.0" PROJECT_VERSION: str = "1.0.0"
POSTGRES_USER: str = "VMSBase" POSTGRES_USER: str = "VMSBase"
POSTGRES_PASSWORD = "VMSBasePass" POSTGRES_PASSWORD = "VMSBasePass"
POSTGRES_SERVER: str = "localhost"
POSTGRES_SERVER: str = "db"
POSTGRES_PORT: str = "5432" POSTGRES_PORT: str = "5432"
POSTGRES_DB: str = "VMSData" POSTGRES_DB: str = "VMSData"
DATABASE_URL = f"postgresql://{POSTGRES_USER}:{POSTGRES_PASSWORD}@{POSTGRES_SERVER}:{POSTGRES_PORT}/{POSTGRES_DB}" DATABASE_URL = f"postgresql://{POSTGRES_USER}:{POSTGRES_PASSWORD}@{POSTGRES_SERVER}:{POSTGRES_PORT}/{POSTGRES_DB}"


+ 1
- 0
docker-compose.yml View File

@@ -7,6 +7,7 @@ services:
- "8000:2764" - "8000:2764"
depends_on: depends_on:
- db - db
restart: always




db: db:


Loading…
Cancel
Save