Sign inSign up

reactivesw/postgres

By reactivesw

•Updated over 9 years ago

Image
0

254

reactivesw/postgres repository overview

⁠Dockerfile

FROM postgres:9.6
COPY ./create_db.sh     /docker-entrypoint-initdb.d/20-create_db.sh
COPY *.sql /docker-entrypoint-initdb.d/
RUN chmod a+r /docker-entrypoint-initdb.d/*

⁠create_db.sh

#!/bin/bash
set -e

POSTGRES="psql --username ${POSTGRES_USER}"

$POSTGRES <<EOSQL
CREATE DATABASE cart;
CREATE DATABASE category;
CREATE DATABASE customer_authentication;
CREATE DATABASE customer_info;
CREATE DATABASE inventory;
CREATE DATABASE orders;
CREATE DATABASE payment;
CREATE DATABASE product;
CREATE DATABASE product_type;
EOSQL

⁠conf.sql

ALTER SYSTEM SET max_connections = 300;
--ALTER SYSTEM SET shared_buffers = "80MB";

Tag summary

Content type

Image

Digest

Size

99.1 MB

Last updated

over 9 years ago

docker pull reactivesw/postgres:0.0.2