Skip to content

Commit

Permalink
Separate out test db
Browse files Browse the repository at this point in the history
  • Loading branch information
tolyo committed Dec 18, 2023
1 parent bc98be8 commit ddc5fbd
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
- "5432:5432"
volumes:
- postgres-storage:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
env_file:
- ./pkg/conf/dev.env
restart: unless-stopped
Expand Down
3 changes: 3 additions & 0 deletions init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- init.sql

CREATE DATABASE default_test_db;
2 changes: 1 addition & 1 deletion pkg/conf/dev.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
POSTGRES_DB=exchange_db
POSTGRES_DB=default_db
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_PORT=5432
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ddc5fbd

Please sign in to comment.