From b03eacb932338a80beabf973e97ab56a8fa2d23e Mon Sep 17 00:00:00 2001 From: Julien Boyer Date: Sun, 30 Jul 2023 20:50:18 +0200 Subject: [PATCH] Update README.md Add .env file Signed-off-by: Julien Boyer Signed-off-by: sitarane --- official-documentation-samples/rails/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/official-documentation-samples/rails/README.md b/official-documentation-samples/rails/README.md index f42e6e8..8079d78 100644 --- a/official-documentation-samples/rails/README.md +++ b/official-documentation-samples/rails/README.md @@ -138,6 +138,20 @@ services: > > You can use either a `.yml` or `.yaml` extension for this file. +You can see in the docker-compose.yml file: +> env_file: .env + +We need to create that .env file, with the following content: + +```bash +POSTGRES_PASSWORD=uniquesecretpassword +POSTGRES_USER=postgres +``` +Feel free to make them unique. + +Note for later: if you commit your code to git, make sure to add this .env file that has your +db password to .gitignore. You can use this file to store other secrets. + ### Build the project With those files in place, you can now generate the Rails skeleton app