1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-29 07:38:02 +02:00

Update README.md

Add .env file

Signed-off-by: Julien Boyer <julien@larevolution.re>
Signed-off-by: sitarane <julien@larevolution.re>
This commit is contained in:
Julien Boyer 2023-07-30 20:50:18 +02:00 committed by sitarane
parent 0ccebd63e1
commit b03eacb932

View file

@ -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