Skip to content

Commit 9708952

Browse files
committed
update help to inspect the database schema with the container setup
1 parent 82fa921 commit 9708952

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Container.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,15 @@ To run tests with containers, you need to use this command:
112112
docker compose run linuxfr.org bin/rails test -v
113113
```
114114

115-
Inspect database schema
116-
=======================
115+
Inspect the database schema
116+
===========================
117117

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

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

127125
Apply database migrations
128126
=========================

0 commit comments

Comments
 (0)