Skip to content

Commit 8a582a0

Browse files
committed
update help to inspect the database schema with the container setup
1 parent b4ea61c commit 8a582a0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Docker.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,15 @@ To run tests with Docker environment, you need to use this command:
8585
docker-compose run linuxfr.org bin/rails test -v
8686
```
8787

88-
Inspect database schema
89-
=======================
88+
Inspect the database schema
89+
===========================
9090

91-
In case you need to inspect the database, you need a second terminal
92-
and run:
91+
In case you need to inspect the database, the port `3306` of your machine is
92+
by default bound to the port `3306` of the database container.
9393

94-
```
95-
docker-compose run database mysql -hdatabase -ulinuxfr_rails -p linuxfr_rails
96-
```
97-
98-
By default, the requested password is the same as the username.
94+
Thus you can connect to the linuxfr database with hostname `localhost` and the
95+
username, password and database name defined in the `deployment/default.env`
96+
configuration file (all three last are by default `linuxfr_rails`).
9997

10098
Apply database migrations
10199
=========================

0 commit comments

Comments
 (0)