Remove .env file

This commit removes the `.env` file and replaces it with an
`env.example` file. This will (hopefully) reduce the chances of passing
a plaintext password into a public repository.

- add `.env` to `.gitignore`
This commit is contained in:
Trevor Oke
2021-01-31 15:21:19 -05:00
parent a3314672f3
commit 95f95bcede
3 changed files with 9 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
.env
+8 -2
View File
@@ -25,7 +25,13 @@ Make sure to [add your user to the `docker` group](https://docs.docker.com/insta
## Configuration
Edit the `.env` file to change the default IP address, MySQL root password and WordPress database name.
1. Copy the example environment into `.env`
```
cp env.example .env
```
2. Edit the `.env` file to change the default IP address, MySQL root password and WordPress database name.
## Installation
@@ -150,4 +156,4 @@ wp plugin list
You can also visit `http://127.0.0.1:8080` to access phpMyAdmin after starting the containers.
The default username is `root`, and the password is the same as supplied in the `.env` file.
The default username is `root`, and the password is the same as supplied in the `.env` file.
View File