Skip to content

Commit

Permalink
Database Persistence - Setting Up MongoDB
Browse files Browse the repository at this point in the history
  • Loading branch information
codelens254 committed Jan 13, 2021
1 parent e10a58f commit 522b0f9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
20 changes: 20 additions & 0 deletions mongodb-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "3.5"

services:
mongo:
image: mongo:4
container_name: daraja-mongo
ports:
- 27080:27017
networks:
- daraja
volumes:
- mongo:/data/db

networks:
daraja:
name: daraja-network

volumes:
mongo:
driver: local
9 changes: 8 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,11 @@ mpesa:
stkPushShortCode: 174379
stkPushRequestUrl: https://sandbox.safaricom.co.ke/mpesa/stkpush/v1/processrequest
stkPushRequestCallbackUrl: https://adf94cda8cd2.ngrok.io/mobile-money/stk-transaction-result
lnmQueryRequestUrl: https://sandbox.safaricom.co.ke/mpesa/stkpushquery/v1/query
lnmQueryRequestUrl: https://sandbox.safaricom.co.ke/mpesa/stkpushquery/v1/query

spring:
data:
mongodb:
host: localhost
port: 27080
database: daraja-db

0 comments on commit 522b0f9

Please sign in to comment.