I tried to run a sql script in order to insert data. In order to run that I need to provide username and password also but didn't find any way to provide password. Previously I did this in Mysql like below- docker exec api.mysql /bin/bash -c 'mysql -uroot -p$(DB_PASSWORD) \ < /api.mysql.sql' I want to execute it now for postgres. Is there any way to do that?
Asked
Active
Viewed 349 times