From 95f95bcede99fed3a5300787a73fa54e2ec8a398 Mon Sep 17 00:00:00 2001
From: Trevor Oke <trevor@trevoroke.com>
Date: Sun, 31 Jan 2021 15:21:19 -0500
Subject: [PATCH] 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`
---
 .gitignore          |  1 +
 README.md           | 10 ++++++++--
 .env => env.example |  0
 3 files changed, 9 insertions(+), 2 deletions(-)
 create mode 100644 .gitignore
 rename .env => env.example (100%)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4c49bd7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.env
diff --git a/README.md b/README.md
index 4dd7fe5..d745a4a 100644
--- a/README.md
+++ b/README.md
@@ -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.
\ No newline at end of file
+The default username is `root`, and the password is the same as supplied in the `.env` file.
diff --git a/.env b/env.example
similarity index 100%
rename from .env
rename to env.example
-- 
GitLab