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/*
#!/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
ALTER SYSTEM SET max_connections = 300;
--ALTER SYSTEM SET shared_buffers = "80MB";
Content type
Image
Digest
Size
99.1 MB
Last updated
over 9 years ago
docker pull reactivesw/postgres:0.0.2