-
Go to the directory with docker-compose file.
-
Execute the next command to get db dump (note that the next command is an example for actual docker-compose config):
docker-compose run postgres pg_dump -h postgres -U postgres db_development > db_development.dump