Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
< Result > Build postgresql container Django can connect to postgresql container Initial migration is done Verify postgresql DB contains Django tables < Make postgres service in docker-compose.yml > Add postgres service Change exposed port to other port for external access Hide DB connection information Modify app service Set environment variables for Django DB connection < Load DB information in settings.py > Make env in python container about DB information Load env in settings.py from os.environ.get() Migrate DB ** CAUTION ** If you struggle to set the DB information in settings.py, Try to delete Docker volume and restart docker-compose Because the DB information is saved in Docker volume at the first time And then it is not changed even if you change the DB information in env data
- Loading branch information
Showing
5 changed files
with
58 additions
and
6 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
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