Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 764 Bytes

REAME.MD

File metadata and controls

18 lines (12 loc) · 764 Bytes

docker run --name postgres -e POSTGRES_USER=ilso -e POSTGRES_PASSWORD=minhasenhasecreta -e POSTGRES_DB=heroes -p 5432:5432 -d postgres

docker ps docker exec -it postgres /bin/bash ls

docker run --name adminer -p 8080:8080 --link postgres:postgres -d adminer

--MONGODB

docker pull mongo docker images docker run --name mongodb -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=senhaadmin -d mongo:4 docker ps -a

docker run --name mongoclient -p 3000:3000 --link mongodb:mongodb -d mongoclient/mongoclient

docker exec -it mongodb mongo --host localhost -u admin -p senhaadmin --authenticationDatabase admin --eval "db.getSiblingDB('herois').createUser({user: 'ilso', pwd: '1234', roles: [{role: 'readWrite', db: 'herois'}]})"