generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify db docker service to use the env file (#437)
* modifed db docker service in docker-compose.yml to use the env file * updated postgres settings for local development in env.docker-example
- Loading branch information
Showing
6 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,16 @@ DJANGO_SUPERUSER_USERNAME=admin1111 | |
[email protected] | ||
DJANGO_SUPERUSER_PASSWORD=admin | ||
|
||
# settings for db container environment variables in compose file | ||
POSTGRES_USER=people_depot | ||
POSTGRES_PASSWORD=people_depot | ||
POSTGRES_DB=people_depot_dev | ||
|
||
# postgres settings for docker | ||
SQL_USER=$POSTGRES_USER | ||
SQL_PASSWORD=$POSTGRES_PASSWORD | ||
SQL_DATABASE=$POSTGRES_DB | ||
SQL_ENGINE=django.db.backends.postgresql | ||
SQL_DATABASE=people_depot_dev | ||
SQL_USER=people_depot | ||
SQL_PASSWORD=people_depot | ||
SQL_HOST=db | ||
SQL_PORT=5432 | ||
DATABASE=postgres | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters