From ee40432ab8c403f2d6b26d37720e4008d1172aef Mon Sep 17 00:00:00 2001 From: "Michael J. Simons" Date: Mon, 26 Dec 2016 21:01:15 +0100 Subject: [PATCH] Add hint how to run local docker dev db --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 13ef5ae..1aee89b 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,13 @@ There's a lengthy blog post on why and how this application was written: To build this project, you'll need a valid Java 1.8 installation and either a local PostgreSQL database running on localhost:5432 with a schema named `tweetArchive` and user `tweetArchive` with the same password or a Docker installation. -The database can be configured through the means of [Spring Boot](http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html). +To run a PostgreSQL database instance inside a Docker container use + +``` +docker run --name tweet-archive-db-dev -e POSTGRES_USER=tweetArchive -e POSTGRESS_PASSWORD=tweetArchive -p 5432:5432 -d postgres +``` + +The database connection can be configured through the means of [Spring Boot](http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html). ### Built the application