docker-library / postgres

Docker Official Image packaging for Postgres

Home Page:http://www.postgresql.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run database initialization after startup

benno-mueller-saxess opened this issue · comments

I want to run some database initialization script after the server has startet successfull (Log: "LOG: Datenbanksystem ist bereit, um Verbindungen anzunehmen"). I'm using currently image postgres:12.18

How can I do this with an Dockerfile?

See #173, #821, #191, #929 for some other issues that have some good thoughts / suggestions (one of/many of which this is probably a solid duplicate of).