Try running the following commands in the db container (per janhaus):
Code:
psql -d postgres -U postgres -f /docker-entrypoint-initdb.d/schema.sql
Code:
psql -d postgres -U postgres -f /docker-entrypoint-initdb.d/migrations.sql
If you get an error because there was no schema or migration file in the container, but you can see the file listed in the files tab for the container, see if there is a note with the word "mount." If so it means the container is accessing the file externally. If you copy the latest version of the file into your container and run the command again, it should work.