Skip to content

Commit bc7680c

Browse files
authored
Merge pull request cfpb#1089 from jmarin/dependencies-docker
Dependencies docker
2 parents 330bc2f + 7a47cc8 commit bc7680c

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ export ZOOKEEPER_HOST=192.168.99.100
144144
export ZOOKEEPER_PORT=2181
145145
```
146146

147+
Alternatively, these dependencies (`Cassandra`, `Zookeeper` and `PostgreSQL`) can be started from `docker` providing default resources for the `HMDA Platform`:
148+
149+
`docker-compose -f docker-dev.yml up`
150+
147151
* If you want to use the sample files in this repo for testing the app, run the edits in demo mode. Otherwise, edit S025 will trigger for all files.
148152

149153
```shell

docker-dev.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: '2'
2+
3+
services:
4+
zookeeper:
5+
image: jplock/zookeeper
6+
ports:
7+
- '2181:2181'
8+
9+
cassandra:
10+
image: cassandra
11+
ports:
12+
- '9042:9042'
13+
- '7000:7000'
14+
- '7199:7199'
15+
16+
query_db:
17+
image: postgres:9.6.1
18+
ports:
19+
- '54321:5432'
20+
environment:
21+
POSTGRES_DB: hmda
22+
POSTGRES_USER: postgres
23+
POSTGRES_PASSWORD: postgres

query/src/main/resources/application.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ db {
4949
driver = "slick.driver.PostgresDriver$"
5050

5151
db {
52-
url = "jdbc:postgresql://localhost/hmda?user=postgres&password=postgres"
52+
url = "jdbc:postgresql://192.168.99.100:54321/hmda?user=postgres&password=postgres"
5353
url = ${?JDBC_URL}
5454
driver = org.postgresql.Driver
5555
numThreads = 2

0 commit comments

Comments
 (0)