Skip to content

Commit

Permalink
Introduce mongodb docker
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliamoran committed Oct 10, 2021
1 parent 8442b9f commit 375db38
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3.8"
services:
mongodb:
image : mongo:latest
container_name: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- ./mongo_data:/data/db
ports:
- 27017:27017
restart: unless-stopped
Empty file added mongo_data/.gitkeep
Empty file.

0 comments on commit 375db38

Please sign in to comment.