Standardize username and password.

pull/1/head
Alex MacArthur 5 years ago
parent c063acf673
commit a5934da563

@ -11,3 +11,6 @@ Clone the repo or copy a `docker-compose.yml` file to your system, `cd` into tha
## Local Persistence
In each setup, your data is configured to be stored locally in a `./data` directory. If that directory doesn't exist, it'll be created automatically.
## Authentication
For authenticating as super user with each of these examples, `root` should be the username and `password` should be the password.

@ -12,7 +12,7 @@ While in the shell, run the following:
```
use admin;
db.auth("user", "password");
db.auth("root", "password");
use myDatabase;
db.createUser({user: "user", pwd: "password", roles:[{role: "readWrite" , db:"myDatabase"}]});
db.createUser({user: "root", pwd: "password", roles:[{role: "readWrite" , db:"myDatabase"}]});
```

@ -8,5 +8,5 @@ services:
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: user
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password

@ -6,7 +6,7 @@
`docker-compose exec --user root db mysql -u root -p`
When prompted, enter `root` as the password.
When prompted, enter `password` as the password.
# Create a DB

@ -10,4 +10,4 @@ services:
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_PASSWORD: password

@ -4,7 +4,7 @@
# Enter the Postgres Shell
`docker-compose exec --user root db psql -h localhost -U postgres`
`docker-compose exec --user root db psql -h localhost -U root`
# Create a DB

@ -7,3 +7,7 @@ services:
- ./data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "password"

Loading…
Cancel
Save