Public Repository

Last pushed: 5 months ago
Short Description
Short description is empty for this repo.
Full Description

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";
Docker Pull Command
Owner
reactivesw

Comments (0)