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
3. From commandline, `cd` into the `docker` directory and run `docker-compose up`
36
53
37
54
```bash
@@ -74,6 +91,8 @@ Here is an example of what my typical setup looks like
74
91
..
75
92
docker
76
93
docker-compose.yml
94
+
mysql
95
+
my.cnf
77
96
nginx
78
97
nginx.conf
79
98
php-fpm
@@ -109,6 +128,7 @@ username : myapp
109
128
password : myapp
110
129
database : myapp
111
130
```
131
+
112
132
You can access your MySQL database (with your favorite GUI app) on
113
133
114
134
`localhost:8106`
@@ -157,6 +177,7 @@ There are 4 containers that I use all the time that will be spooled up automatic
157
177
158
178
First we're creating an nginx server. The configuration is set based on the CakePHP suggestions for nginx and `myapp-nginx` will handle all the incoming requests from the client and forward them to the `myapp-php-fpm` server which is what actually runs your PHP code.
159
179
180
+
You can configure the **nginx server** by editing the `/nginx/nginx.conf` file
160
181
161
182
### `myapp-php-fpm` - the PHP processor
162
183
@@ -173,11 +194,17 @@ It also includes some php ini overrides (see `php-fpm\php-ini-overrides.ini`)
173
194
174
195
This container will (by default) look for your web app code in `../cakephp/` (relative to the `docker-compose` file).
175
196
197
+
You can configure what **PHP extensions** are loaded by editing `/php-fpm/Dockerfile`
198
+
199
+
You can configure **PHP overrides** by editing `/php-fpm/php-ini-overrides.ini`
200
+
176
201
### `myapp-mysql` - the database server
177
202
178
-
The first time you run the docker containers it will create a folder in your root structure called `mysql` and this is where it will store all your database data.
203
+
The first time you run the docker containers it will create a folder in your root structure called `mysql` (at the same level as your `docker` folder) and this is where it will store all your database data.
204
+
205
+
Since the data is stored on your host device you can bring the mysql container up and down or completely destroy and rebuild it without ever actually touching your data - it is "safely" stored on the host.
179
206
180
-
Since the data is stored on your host device you can bring the mysql container up and down or completely destroy and rebuild it without ever actually touching your data - it is "safely" stored on the host
207
+
You can configure **MySQL overrides** by editing `/mysql/my.cnf`
0 commit comments