You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use WordPress with Docker using [Docker compose](https://docs.docker.com/compose/)
6
+
Use WordPress locally with Docker using [Docker compose](https://docs.docker.com/compose/)
7
7
8
8
+`Dockerfile` for extending a base image and install wp-cli
9
9
+ Using a custom [Docker image](https://github.com/urre/wordpress-nginx-docker-compose-image) with [automated build on Docker Hub](https://cloud.docker.com/repository/docker/urre/wordpress-nginx-docker-compose-image)
10
10
+ Local domain ex `myapp.local`
11
11
+ Custom nginx config in `./nginx`
12
-
+ Custom `php.ini` config in `./config`
12
+
+ Custom PHP `php.ini` config in `./config`
13
13
+ Volumes for `nginx`, `wordpress` and `mariadb`
14
14
+ WordPress using [Bedrock](https://roots.io/bedrock/) - modern development tools, easier configuration, and an improved folder structure
15
-
+ CLI scripts for creating a self signed SSL certificate for using https
16
-
+ CLI script for trusting certs in macOS System Keychain
17
-
+ CLI script for setting up an entry in your host file
15
+
+ CLI scripts
16
+
- Create a self signed SSL certificate for using https
17
+
- Trust certs in macOS System Keychain
18
+
- Setup the local domain in your in `/etc/hosts`
18
19
19
20
## Setup
20
21
@@ -30,7 +31,11 @@ cd cli && ./create-cert.sh
30
31
31
32
> Edit the script to your your custom domain, this example uses myapp.local
32
33
33
-
### Trust cert in macOS Keychain. (Chrome and Safari will trust the certs, for Firefox: add them in preferences)
34
+
### Trust the cert in macOS Keychain.
35
+
36
+
Chrome and Safari will trust the certs using this script.
37
+
38
+
> In Firefox: Select Advanced, Select the Encryption tab, Click View Certificates. Navigate to where you stored the certificate and click Open, Click Import.
34
39
35
40
```shell
36
41
cd cli && ./trust-cert.sh
@@ -81,7 +86,11 @@ docker-compose up -d
81
86
82
87
### Notes:
83
88
84
-
> When making changes to the Dockerfile : Use `docker-compose up -d --force-recreate --build`.
0 commit comments