Fixtures for brew in postgres

This commit is contained in:
Tanshu
2016-01-30 12:03:32 +05:30
parent 92c8601118
commit dfff92d978
4 changed files with 13 additions and 3 deletions

5
postgres/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM postgres:latest
MAINTAINER tanshu
COPY user.sql /docker-entrypoint-initdb.d/
COPY brew.sql /docker-entrypoint-initdb.d/

2
postgres/brew.sql Normal file
View File

@ -0,0 +1,2 @@
CREATE DATABASE brew;
GRANT ALL PRIVILEGES ON DATABASE brew TO brew;

1
postgres/user.sql Normal file
View File

@ -0,0 +1 @@
CREATE USER brew WITH PASSWORD '123456';