Skip to content

Commit 2cac14b

Browse files
committed
Merge branch 'develop'
2 parents b078fd7 + 7e2c0c6 commit 2cac14b

File tree

2 files changed

+33
-34
lines changed

2 files changed

+33
-34
lines changed

README.md

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Circle CI](https://circleci.com/gh/htmlgraphic/Apache/tree/master.svg?style=svg)](https://circleci.com/gh/htmlgraphic/Apache/tree/master)
55
[![](https://images.microbadger.com/badges/image/htmlgraphic/apache:latest.svg)](https://microbadger.com/images/htmlgraphic/apache:latest "Get your own image badge on microbadger.com")
66

7-
This repo will give you a turn key Docker container build for use in **production** OR **dev**. The setup includes an Apache/2.4.29 web service, PHP Version 7.4.3, PHP Composer, linked [MySQL 5.7.29](https://hub.docker.com/_/mysql) instance and a data container volume.
7+
This repo will give you a turn key Docker container build for use in **production** OR **dev**. The setup includes an Apache/2.4.29 web service, PHP Version 7.4+, PHP Composer, linked [MySQL 5.7.29](https://hub.docker.com/_/mysql) instance and a data container volume.
88

99
Using containers offer a huge advantage when developing locally or in prodcution. Use this containers for development and deployment. Changing `NODE_ENVIRONMENT` within to `.env` to `dev` or `production` will offer a dynamic environment.
1010

@@ -55,8 +55,35 @@ The **Apache** container the directory `/data` is shared to your local system vi
5555
Docker Compose File Reference [more info](https://docs.docker.com/compose/compose-file/)
5656

5757

58+
### Mac OS X / Linux
59+
60+
> Type `make` for more build options:
61+
62+
```bash
63+
> git clone https://github.com/htmlgraphic/Apache.git ~/Docker/Apache && cd ~/Docker/Apache
64+
> cp .env.example .env
65+
> make run
66+
```
67+
68+
### Windows
69+
70+
```bash
71+
> git clone https://github.com/htmlgraphic/Apache.git ~/Docker/Apache; cd ~/Docker/Apache
72+
> copy .env.example .env
73+
> docker-compose -f docker-compose.local.yml up -d
74+
```
75+
76+
> Optional, are you having problems on Windows? Disable Firewall
77+
78+
```bash
79+
> netsh advfirewall show currentprofile
80+
> netsh advfirewall set allprofiles state off
81+
```
82+
83+
5884
---
5985

86+
6087
### Google Cloud
6188

6289
Use the following command with Google Compute. This will create a [virtual machine instance](https://cloud.google.com/sdk/gcloud/reference/beta/compute/instances/create-with-container) running [COS](https://cloud.google.com/container-optimized-os/) (Container Operating System).
@@ -89,7 +116,7 @@ docker run --rm --name temp_certbot \
89116
-w /data/www/XYZ/public_html -d example.com -d www.example.com
90117
```
91118

92-
When host system is restarted, start Docker instance on boot:
119+
Set the following cron task, when host system is restarted, start instance will start on boot:
93120
```bash
94121
sudo su
95122
crontab -e
@@ -99,36 +126,6 @@ crontab -e
99126

100127
---
101128

102-
### Mac OS X / Linux
103-
104-
> Type `make` for more build options:
105-
106-
```bash
107-
> git clone https://github.com/htmlgraphic/Apache.git ~/Docker/Apache && cd ~/Docker/Apache
108-
> cp .env.example .env
109-
> make run
110-
```
111-
112-
### Windows
113-
114-
```bash
115-
> git clone https://github.com/htmlgraphic/Apache.git ~/Docker/Apache; cd ~/Docker/Apache
116-
> copy .env.example .env
117-
> docker-compose -f docker-compose.local.yml up -d
118-
```
119-
120-
> Optional, are you having problems on Windows? Disable Firewall
121-
122-
```bash
123-
> netsh advfirewall show currentprofile
124-
> netsh advfirewall set allprofiles state off
125-
```
126-
127-
128-
####
129-
130-
131-
132129

133130
## phpMyAdmin
134131

app/run.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,17 @@ cat <<EOT >> /etc/apache2/mods-available/pagespeed.conf
154154
Order allow,deny
155155
Allow from localhost
156156
Allow from 127.0.0.1
157-
Allow from all
157+
Allow from 35.232.187.229
158+
Allow from 65.31.226.148
158159
SetHandler pagespeed_admin
159160
</Location>
160161
161162
<Location /pagespeed_global_admin>
162163
Order allow,deny
163164
Allow from localhost
164165
Allow from 127.0.0.1
165-
Allow from all
166+
Allow from 35.232.187.229
167+
Allow from 65.31.226.148
166168
SetHandler pagespeed_global_admin
167169
</Location>
168170
EOT

0 commit comments

Comments
 (0)