Skip to content

Commit a5934da

Browse files
committed
Standardize username and password.
1 parent c063acf commit a5934da

File tree

7 files changed

+13
-6
lines changed

7 files changed

+13
-6
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ Clone the repo or copy a `docker-compose.yml` file to your system, `cd` into tha
1111

1212
## Local Persistence
1313
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.
14+
15+
## Authentication
16+
For authenticating as super user with each of these examples, `root` should be the username and `password` should be the password.

mongo/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ While in the shell, run the following:
1212

1313
```
1414
use admin;
15-
db.auth("user", "password");
15+
db.auth("root", "password");
1616
use myDatabase;
17-
db.createUser({user: "user", pwd: "password", roles:[{role: "readWrite" , db:"myDatabase"}]});
17+
db.createUser({user: "root", pwd: "password", roles:[{role: "readWrite" , db:"myDatabase"}]});
1818
```

mongo/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ services:
88
ports:
99
- 27017:27017
1010
environment:
11-
MONGO_INITDB_ROOT_USERNAME: user
11+
MONGO_INITDB_ROOT_USERNAME: root
1212
MONGO_INITDB_ROOT_PASSWORD: password

mysql/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
`docker-compose exec --user root db mysql -u root -p`
88

9-
When prompted, enter `root` as the password.
9+
When prompted, enter `password` as the password.
1010

1111
# Create a DB
1212

mysql/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ services:
1010
ports:
1111
- 3306:3306
1212
environment:
13-
MYSQL_ROOT_PASSWORD: root
13+
MYSQL_ROOT_PASSWORD: password

postgres/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Enter the Postgres Shell
66

7-
`docker-compose exec --user root db psql -h localhost -U postgres`
7+
`docker-compose exec --user root db psql -h localhost -U root`
88

99
# Create a DB
1010

postgres/docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ services:
77
- ./data:/var/lib/postgresql/data
88
ports:
99
- 5432:5432
10+
environment:
11+
POSTGRES_USER: "root"
12+
POSTGRES_PASSWORD: "password"
13+

0 commit comments

Comments
 (0)