Skip to content

Commit

Permalink
[#6] Separate db entrypoint for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dedenbangkit committed Dec 12, 2022
1 parent 83211ec commit 1af21bc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions db/docker-entrypoint-initdb.d.ci/000-init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CREATE USER siwins WITH CREATEDB PASSWORD 'password';

CREATE DATABASE siwins
WITH OWNER = siwins
TEMPLATE = template0
ENCODING = 'UTF8'
LC_COLLATE = 'en_US.UTF-8'
LC_CTYPE = 'en_US.UTF-8';


CREATE DATABASE siwins_test
WITH OWNER = siwins
TEMPLATE = template0
ENCODING = 'UTF8'
LC_COLLATE = 'en_US.UTF-8'
LC_CTYPE = 'en_US.UTF-8';
2 changes: 1 addition & 1 deletion docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
depends_on:
- db
environment:
- DATABASE_URL=postgresql://siwins:password@db:5432/siwins_test
- DATABASE_URL=postgresql://siwins:password@db:5432/siwins
- AUTH0_CLIENT=$AUTH0_CLIENT
- AUTH0_USER=$AUTH0_USER
- AUTH0_PWD=$AUTH0_PWD
Expand Down

0 comments on commit 1af21bc

Please sign in to comment.