Skip to content

Commit

Permalink
feat: add docker compose file and initial db
Browse files Browse the repository at this point in the history
  • Loading branch information
zo-chu committed Mar 8, 2021
1 parent 31de8e7 commit 929b65e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3.1'

services:
db:
image: postgres:9-alpine
restart: always
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
ports:
- 5432:5432
volumes:
- postgres_volume:/var/lib/postgresql
- ./init-db:/docker-entrypoint-initdb.d/init-db.sql

volumes:
postgres_volume: {}
2 changes: 2 additions & 0 deletions init-db.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE DATABASE wallet_test;
CREATE DATABASE wallet_dev;

0 comments on commit 929b65e

Please sign in to comment.