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
docker compose -f compose.yaml -f compose.prod.yaml up -d --wait
70
+
docker compose -f compose.yaml -f compose.prod.yaml up --wait
71
71
```
72
72
73
73
Be sure to replace `your-domain-name.example.com` with your actual domain name and to set the values of `APP_SECRET`, `CADDY_MERCURE_JWT_SECRET` to cryptographically secure random values.
@@ -89,7 +89,7 @@ Alternatively, if you don't want to expose an HTTPS server but only an HTTP one,
@@ -27,7 +27,7 @@ Both dev and prod images have the same image tag (`<...>app-php:latest`). This c
27
27
It is important to make sure that your image is the appropriate one for the current environment.
28
28
29
29
If you are not careful about this, and try to run your production container(s) with
30
-
`docker compose -f compose.yaml -f compose.prod.yaml up -d`
30
+
`docker compose -f compose.yaml -f compose.prod.yaml up --wait`
31
31
without the right build process beforehand, your application **will still launch**, but will be displaying an output of `phpinfo()` (or possibly even a HTTP 500 error page).
32
32
33
33
See details below.
@@ -45,7 +45,7 @@ Which is good enough for dev purposes.
45
45
Then, you can start your dev container(s) by running:
46
46
47
47
```console
48
-
docker compose up -d
48
+
docker compose up --wait
49
49
```
50
50
51
51
@@ -58,15 +58,15 @@ docker compose up -d
58
58
<summary>Output expected for the production build process</summary>
59
59
60
60
To build the production image, you <ins>have to</ins> specify the `compose.yaml` and `compose.prod.yaml` files.
61
-
This means you have to run: `docker compose -f compose.yaml -f compose.prod.yaml build` in order to build your image
61
+
This means you have to run: `docker compose -f compose.yaml -f compose.prod.yaml build --pull --no-cache` in order to build your image
62
62
(careful: the order of `-f` arguments is important).
63
63
64
64
That way, you will see that `frankenphp_base` and `frankenphp_prod` are built this time, which is what you will need for production purposes.
65
65
66
66
You can finally start your prod container(s) by running:
67
67
68
68
```console
69
-
docker compose -f compose.yaml -f compose.prod.yaml up -d
69
+
docker compose -f compose.yaml -f compose.prod.yaml up --wait
0 commit comments