Skip to content

Commit 52b6bab

Browse files
author
Luiz Filipy
committed
🌿 MongoDB 🌿
1 parent e0c02ed commit 52b6bab

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

MongoDB/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Docker-Compose :whale:
2+
3+
> É necessário instalar [docker-compose](https://docs.docker.com/compose/install/)
4+
5+
Para executar: ```docker-compose up -d```
6+
Para acessar MongoDB shell ```docker exec -it {CONTAINER ID} mongo```
7+
> Para ver o container id ```docker ps```

MongoDB/docker-compose.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: '3.1'
2+
3+
services:
4+
5+
mongo:
6+
image: mongo
7+
restart: always
8+
environment:
9+
MONGO_INITDB_ROOT_USERNAME: root
10+
MONGO_INITDB_ROOT_PASSWORD: root
11+
MONGO_INITDB_DATABASE: test
12+
ports:
13+
- "27017:27017"

0 commit comments

Comments
 (0)