Skip to content

Commit

Permalink
Add docker-compose with MongoDB instance
Browse files Browse the repository at this point in the history
  • Loading branch information
nikist97 committed Jul 29, 2022
1 parent dfa522c commit 587c6fb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,2 +1,3 @@
.idea
target
target
.data
14 changes: 14 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,14 @@
version: "3.9"
services:
mongo:
image: "mongo:5.0.9"
volumes:
- .data/mongo:/data/db
webapp:
build: .
depends_on:
- "mongo"
environment:
- MongoDB_URI=mongodb://taskmanagementservice_mongo_1:27017
ports:
- "8080:8080"

0 comments on commit 587c6fb

Please sign in to comment.