@@ -5,7 +5,7 @@ This setup spools up the following containers
5
5
6
6
* ** mysql** (8.0)
7
7
* ** nginx**
8
- * ** php-fpm** (php 7.4 )
8
+ * ** php-fpm** (php 8.1 )
9
9
* ** mailhog** (smtp server for testing)
10
10
11
11
The guide will walk you thru the following things
@@ -29,7 +29,7 @@ For those looking to get started in `60 sec` using just the defaults (which are
29
29
* and the files from this repo into the ` docker ` folder
30
30
31
31
```
32
- somefolder
32
+ myapp
33
33
docker
34
34
.. put the zip files in here ..
35
35
cakephp
@@ -65,16 +65,20 @@ For those looking to get started in `60 sec` using just the defaults (which are
65
65
Starting myapp-mailhog
66
66
Starting myapp-php-fpm
67
67
Starting myapp-nginx
68
- Attaching to myapp-mailhog, myapp-mysql, myapp-php-fpm, myapp-nginx
69
- myapp-mailhog | 2017/06/15 16:34:26 Using in-memory storage
70
- ...
71
- myapp-mysql | 2017-06-15T16:34:27.401334Z 0 [Note] mysqld (mysqld 5.7.17) starting as process 1 ...
72
- ...
73
- myapp-mysql | 2017-06-15T16:34:27.408857Z 0 [Warning] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
74
- ...
75
- myapp-mysql | 2017-06-15T16:34:28.332626Z 0 [Note] mysqld: ready for connections.
76
- myapp-mysql | Version: '5.7.17' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
77
- myapp-mailhog | [APIv1] KEEPALIVE /api/v1/events
68
+ Attaching to myapp-mailhog, myapp-mysql, myapp-nginx, myapp-php-fpm
69
+ myapp-mailhog | 2024/06/12 15:59:39 Using in-memory storage
70
+ myapp-mailhog | 2024/06/12 15:59:39 [ SMTP] Binding to address: 0.0.0.0:1025
71
+ myapp-mailhog | 2024/06/12 15:59:39 Serving under http://0.0.0.0:8025/
72
+ myapp-mailhog | [ HTTP] Binding to address: 0.0.0.0:8025
73
+ myapp-mailhog | Creating API v1 with WebPath:
74
+ myapp-mailhog | Creating API v2 with WebPath:
75
+ myapp-mysql | 2024-06-12 15:59:39+00:00 [ Note] [ Entrypoint] : Entrypoint script for MySQL Server 8.0.27-1debian10 started.
76
+ myapp-php-fpm | [ 12-Jun-2024 15:59:39] NOTICE: fpm is running, pid 1
77
+ myapp-php-fpm | [ 12-Jun-2024 15:59:39] NOTICE: ready to handle connections
78
+ myapp-php-fpm | [ 12-Jun-2024 15:59:39] NOTICE: systemd monitor interval set to 10000ms
79
+ myapp-nginx | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
80
+ myapp-nginx | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
81
+ myapp-nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
78
82
... you'll probably see more crap spit out here ...
79
83
```
80
84
5 . If you're creating a new cakephp app, follow the steps in [ creating a CakePHP app] ( #creating-a-CakePHP-app )
@@ -91,7 +95,7 @@ Clone this repo (or just download the zip) and put it in a `docker` folder insid
91
95
Here is an example of what my typical setup looks like
92
96
93
97
```
94
- myapp-folder
98
+ myapp
95
99
cakephp
96
100
src
97
101
config
@@ -214,10 +218,10 @@ This container runs `php` (and it's extensions) needed for your CakePHP app
214
218
215
219
It automatically includes the following extensions
216
220
217
- * `php7.4 -intl` (required for CakePHP 4.0+)
218
- * `php7.4 -mbstring`
219
- * `php7.4 -sqlite3` (required for DebugKit)
220
- * `php7.4 -mysql`
221
+ * `php8.1 -intl` (required for CakePHP 4.0+)
222
+ * `php8.1 -mbstring` (included in the base image)
223
+ * `php8.1 -sqlite3` (required for DebugKit)
224
+ * `php8.1 -mysql`
221
225
222
226
It also includes some php ini overrides (see `php-fpm\php-ini-overrides.ini`)
223
227
@@ -298,7 +302,7 @@ docker exec -it myapp-php-fpm /bin/bash
298
302
299
303
and then, inside the container
300
304
` ` ` bash
301
- composer create-project --prefer-dist cakephp/app:~4.0 .
305
+ composer create-project --prefer-dist cakephp/app:5.* .
302
306
` ` `
303
307
Next, fix the database connection strings by following the steps in [Connecting to your database](#Connecting-to-your-database) (above).
304
308
0 commit comments