mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 14:17:19 +00:00
Configuring Postgres for application and test
This commit is contained in:
3
database/.dockerignore
Normal file
3
database/.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
||||
*
|
||||
|
||||
!docker-entrypoint-initdb.d
|
||||
8
database/Dockerfile
Normal file
8
database/Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM postgres:11.4-alpine
|
||||
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
EXPOSE 5432
|
||||
CMD ["postgres"]
|
||||
2
database/docker-entrypoint-initdb.d/database.sql
Normal file
2
database/docker-entrypoint-initdb.d/database.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
CREATE DATABASE cbwebreader;
|
||||
CREATE DATABASE cbwebreader_test;
|
||||
Reference in New Issue
Block a user