Learn some useful tricks for working with PostgreSQL in Docker containers, including how to log into PSQL, run commands against a database, backup data, execute SQL files, and prepopulate a database on startup.

4m read timeFrom martinheinz.dev
Post cover image
Table of contents
Log Into PSQLRunning Command Against DatabaseBacking up Your DataExecute whole SQL filesPrepopulating Database on the StartWhat About docker-compose ?Conclusion

Sort: