Skip to content

Commit

Permalink
Added docker-compose and updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaisa Korpela committed Jun 30, 2020
1 parent df04dab commit fb600ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ This backend application and Postgre database are deployed to an Azure.

### Database

You must have a PostgreSQL running and database named pos available. You can create needed tables by running `yarn migrate-up`.
You can start database by running `docker-compose up`.
You can create needed tables by running `yarn migrate-up`.

### Ngrok

Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.7'
services:
db:
image: postgres:11
container_name: partio-sovellus-db
ports:
- 5432:5432
environment:
TZ: 'Europe/Helsinki'
PGUSER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: pos

0 comments on commit fb600ed

Please sign in to comment.