postgres.dockerfile 398 B

1234567891011121314
  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 postgresql.conf /tmp/
  9. COPY config.sh create-postgres.sql /docker-entrypoint-initdb.d/
  10. COPY 60-postgresql-shm.conf /etc/sysctl.d/60-postgresql-shm.conf