Skip to content

Commit

Permalink
Added docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelometal committed Aug 8, 2020
1 parent b024ce7 commit 7e120a6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ run:

clean:
@find . -name "*.swp" -delete

docker-run:
@docker-compose up
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- nodejs
- yarn
- [Finance Wallet API][finance-api]
- via docker compose: `make docker-run`

### Installing dependencies

Expand Down
27 changes: 27 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: "3"

services:
mongodb:
image: mongo:4.4.0
ports:
- "27017:27017"
volumes:
- ./db/mongodb:/var/lib/mongodb
restart: always
networks:
- mfinance

wallet-api:
image: mfinance/finance-wallet-api
environment:
- FINANCE_WALLETAPI_DEBUG=true
- FINANCE_WALLETAPI_MONGODB_ENDPOINT=mongodb://mongodb:27017
ports:
- "8889:8889"
depends_on:
- mongodb
networks:
- mfinance

networks:
mfinance:

0 comments on commit 7e120a6

Please sign in to comment.