postgres.dockerfile 374 B

123456789101112
  1. FROM postgres:16-bookworm
  2. ENV PGDATA=/ssd/postgresql \
  3. POSTGRES_DB=hello_world \
  4. POSTGRES_HOST_AUTH_METHOD=md5 \
  5. POSTGRES_INITDB_ARGS=--auth-host=md5 \
  6. POSTGRES_PASSWORD=benchmarkdbpass \
  7. POSTGRES_USER=benchmarkdbuser
  8. COPY 60-postgresql-shm.conf /etc/sysctl.d/
  9. COPY config.sh create-postgres.sql /docker-entrypoint-initdb.d/
  10. COPY postgresql.conf /tmp/