/var/lib/postgresql/data/pgdata docker code example
Example: docker create postgres db
# inside Dockerfile
COPY your_sql_file.sql /docker-entrypoint-initdb.d/
# inside Dockerfile
COPY your_sql_file.sql /docker-entrypoint-initdb.d/