Created
November 26, 2018 06:56
-
-
Save iamucil/17ed0bf33c5b2015ee7396c8df61cd44 to your computer and use it in GitHub Desktop.
execute local query into running docker (compose) container
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
cat file.sql | docker-compose exec -T container_name psql -U pg_user -a -v "options=--search_path=schema" -d db_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment