You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The password should be specified in the db/password.txt file before running docker compose up.
If you skip creating the password.txt file and first run docker compose up, you'll initialize the database without your password and get this error.
Creating the password.txt file after running docker compose up won't fix the issue because the database has already been initialized. To fix the issue, you'll need to either manually specify the password as you've mentioned, or delete the volume and run docker compose up after password.txt has been created.
Skipping the password.txt step has been a common issue in many of the language guides. We need to rework that section.
Is this a docs issue?
Type of issue
Information is incorrect
Description
To run the endpoints without an error, DB role creation needed. See an issue for more info.
Location
https://docs.docker.com/language/python/develop/
Suggestion
Add text:
Get container
docker ps
Enter inside of the container
docker exec -it <hash> bash
Start query console
psql
Define password
ALTER ROLE postgres WITH PASSWORD 'mysecretpassword';
The text was updated successfully, but these errors were encountered: