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
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,16 +15,16 @@ with [FrankenPHP](https://frankenphp.dev) and [Caddy](https://caddyserver.com/)
15
15
16
16
## Features
17
17
18
-
* Production, development and CI ready
19
-
* Just 1 service by default
20
-
* Blazing-fast performance thanks to [the worker mode of FrankenPHP](https://github.com/dunglas/frankenphp/blob/main/docs/worker.md) (automatically enabled in prod mode)
21
-
*[Installation of extra Docker Compose services](docs/extra-services.md) with Symfony Flex
22
-
* Automatic HTTPS (in dev and prod)
23
-
* HTTP/3 and [Early Hints](https://symfony.com/blog/new-in-symfony-6-3-early-hints) support
24
-
* Real-time messaging thanks to a built-in [Mercure hub](https://symfony.com/doc/current/mercure.html)
25
-
*[Vulcain](https://vulcain.rocks) support
26
-
* Native [XDebug](docs/xdebug.md) integration
27
-
* Super-readable configuration
18
+
- Production, development and CI ready
19
+
- Just 1 service by default
20
+
- Blazing-fast performance thanks to [the worker mode of FrankenPHP](https://github.com/dunglas/frankenphp/blob/main/docs/worker.md) (automatically enabled in prod mode)
21
+
-[Installation of extra Docker Compose services](docs/extra-services.md) with Symfony Flex
22
+
- Automatic HTTPS (in dev and prod)
23
+
- HTTP/3 and [Early Hints](https://symfony.com/blog/new-in-symfony-6-3-early-hints) support
24
+
- Real-time messaging thanks to a built-in [Mercure hub](https://symfony.com/doc/current/mercure.html)
Copy file name to clipboardExpand all lines: docs/existing-project.md
+45-19Lines changed: 45 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,46 +4,72 @@ It's also possible to use Symfony Docker with existing projects!
4
4
5
5
First, [download this skeleton](https://github.com/dunglas/symfony-docker).
6
6
7
-
If you cloned the Git repository, be sure to not copy the `.git` directory to prevent conflicts with the `.git` directory already in your existing project.
8
-
You can copy the contents of the repository using git and tar. This will not contain `.git`or any uncommited changes.
7
+
If you cloned the Git repository, be sure to not copy the `.git` directory
8
+
to prevent conflicts with the `.git`directory already in your existing project.
9
9
10
-
git archive --format=tar HEAD | tar -xC my-existing-project/
10
+
You can copy the contents of the repository using Git and tar.
11
+
This will not contain `.git` or any uncommited changes.
11
12
12
-
If you downloaded the skeleton as a zip you can just copy the extracted files:
13
+
```console
14
+
git archive --format=tar HEAD | tar -xC my-existing-project/
15
+
```
13
16
14
-
cp -Rp symfony-docker/. my-existing-project/
17
+
If you downloaded the skeleton as a ZIP you can just copy the extracted files:
If you want to use the [worker mode of FrankenPHP](https://github.com/php/frankenphp/blob/main/docs/worker.md),
30
+
add the FrankenPHP runtime for Symfony:
19
31
20
-
If you want to use the [worker mode of FrankenPHP](https://github.com/php/frankenphp/blob/main/docs/worker.md), add the FrankenPHP runtime for Symfony:
21
-
22
-
composer require runtime/frankenphp-symfony
32
+
```console
33
+
composer require runtime/frankenphp-symfony
34
+
```
23
35
24
36
> [!TIP]
25
-
> With Symfony 7.4, the `runtime/frankenphp-symfony` package isn't required anymore, as Symfony Runtime natively supports FrankenPHP worker mode.
37
+
>
38
+
> With Symfony 7.4, the `runtime/frankenphp-symfony` package isn't required anymore,
39
+
> as Symfony Runtime natively supports FrankenPHP worker mode.
26
40
27
-
Re-execute the recipes to update the Docker-related files according to the packages you use:
41
+
Re-execute the recipes to update the Docker-related files according to
42
+
the packages you use:
28
43
29
-
rm symfony.lock
30
-
composer recipes:install --force --verbose
44
+
```console
45
+
rm symfony.lock
46
+
composer recipes:install --force --verbose
47
+
```
31
48
32
49
Double-check the changes, revert the changes that you don't want to keep:
33
50
34
-
git diff
35
-
...
51
+
```console
52
+
git diff
53
+
```
36
54
37
55
Build the Docker images:
38
56
39
-
docker compose build --pull --no-cache
57
+
```console
58
+
docker compose build --pull --no-cache
59
+
```
40
60
41
61
Start the project!
42
62
43
-
docker compose up --wait
63
+
```console
64
+
docker compose up --wait
65
+
```
44
66
45
67
Browse `https://localhost`, your Docker configuration is ready!
46
68
47
69
> [!NOTE]
48
-
> The worker mode of FrankenPHP is enabled by default in the Caddyfile. To disabled it, comment the `worker {}` section of this file.
49
-
> You may also remove `runtime/frankenphp-symfony` if you never plan on using the worker mode.
70
+
>
71
+
> The worker mode of FrankenPHP is enabled by default in the Caddyfile.
72
+
> To disabled it, comment the `worker {}` section of this file.
73
+
>
74
+
> You may also remove `runtime/frankenphp-symfony`
0 commit comments