Skip to content

Commit

Permalink
Merge pull request #102 from Pet-projects-CodePET/dev_docker
Browse files Browse the repository at this point in the history
fix setting base
  • Loading branch information
VladislavCR authored Mar 9, 2024
2 parents 061eb2a + 341aba4 commit 5d72860
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions infra/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ USE_SQLITE=True

# Для PostgeSQL
DB_ENGINE=django.db.backends.postgresql
DB_NAME=
POSTGRES_DB=
POSTGRES_USER=
POSTGRES_PASSWORD=
DB_HOST=
DB_PORT=
POSTGRES_HOST=
POSTGRES_PORT=

# Переменные для работы с docker.
DOCKERHUB_USERNAME_FRONT=
Expand Down
6 changes: 3 additions & 3 deletions src/backend/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
DATABASES = {
"default": {
"ENGINE": getenv("DB_ENGINE", default="django.db.backends.postgresql"),
"NAME": getenv("DB_NAME", default="db_test"),
"NAME": getenv("POSTGRES_DB", default="db_test"),
"USER": getenv("POSTGRES_USER", default="admin_test"),
"PASSWORD": getenv("POSTGRES_PASSWORD", default="postgre_admin"),
"HOST": getenv("DB_HOST", default="db_test"),
"PORT": getenv("DB_PORT", default=5432),
"HOST": getenv("POSTGRES_HOST", default="db_test"),
"PORT": getenv("POSTGRES_PORT", default=5432),
}
}

Expand Down

0 comments on commit 5d72860

Please sign in to comment.