mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-29 15:48:03 +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:
parent
0ccebd63e1
commit
b03eacb932
1 changed files with 14 additions and 0 deletions
|
@ -138,6 +138,20 @@ services:
|
||||||
>
|
>
|
||||||
> You can use either a `.yml` or `.yaml` extension for this file.
|
> 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
|
### Build the project
|
||||||
|
|
||||||
With those files in place, you can now generate the Rails skeleton app
|
With those files in place, you can now generate the Rails skeleton app
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue