1
Fork 0
mirror of https://github.com/Steffo99/unimore-bda-1.git synced 2024-10-16 14:17:26 +00:00

MongoDB Shell

This commit is contained in:
Steffo 2022-11-06 15:59:41 +01:00
parent da0fed2c7d
commit ae246d57e8
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 8 additions and 1 deletions

View file

@ -20,5 +20,10 @@ Per ricreare lo stesso ambiente di lavoro utilizzato, sarà necessario:
2. Con un daemon Docker in esecuzione, e Docker Compose installato sulla macchina locale, "accendere" il progetto:
```console
# docker compose up
# docker compose up -d
```
3. Con la [MongoDB Shell](https://www.mongodb.com/try/download/shell) installata sulla macchina locale, è possibile interfacciarsi al database con:
```console
$ mongosh --username=unimore --password=unimore --authenticationDatabase=admin mongodb://127.0.0.1:27017/amazon
```

View file

@ -4,6 +4,8 @@ version: "3.9"
services:
mongo:
image: "mongo:6.0.2-focal"
ports:
- "127.0.0.1:27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: "unimore"
MONGO_INITDB_ROOT_PASSWORD: "unimore"