feat: Promote Compose v2

This commit is contained in:
Maxime Hélias
2022-07-28 19:01:17 +02:00
committed by Maxime Helias
parent daef1cb0d5
commit 6a941f244d
9 changed files with 24 additions and 24 deletions

View File

@@ -5,7 +5,7 @@
By default, Symfony Docker will install the minimalist skeleton.
To install the ["website skeleton"](https://symfony.com/doc/current/setup.html#creating-symfony-applications), use the following command:
SKELETON=symfony/website-skeleton docker-compose up --build
SKELETON=symfony/website-skeleton docker compose up --build
## Selecting a Specific Symfony Version
@@ -13,7 +13,7 @@ Use the `SYMFONY_VERSION` environment variable to select a specific Symfony vers
For instance, use the following command to install Symfony 4.4:
SYMFONY_VERSION=4.4.* docker-compose up --build
SYMFONY_VERSION=4.4.* docker compose up --build
## Installing Development Versions of Symfony
@@ -22,13 +22,13 @@ The value must be [a valid Composer stability option](https://getcomposer.org/do
For instance, use the following command to use the `master` branch of Symfony:
STABILITY=dev docker-compose up --build
STABILITY=dev docker compose up --build
## Customizing the Server Name
Use the `SERVER_NAME` environment variable to define your custom server name(s).
SERVER_NAME="symfony.localhost, caddy:80" docker-compose up --build
SERVER_NAME="symfony.localhost, caddy:80" docker compose up --build
If you use Mercure, keep `caddy:80` in the list to allow the PHP container to request the caddy service.
@@ -36,6 +36,6 @@ If you use Mercure, keep `caddy:80` in the list to allow the PHP container to re
Use the environment variables `HTTP_PORT`, `HTTPS_PORT` and/or `HTTP3_PORT` to adjust the ports to your needs, e.g.
HTTP_PORT=8000 HTTPS_PORT=4443 HTTP3_PORT=4443 docker-compose up --build
HTTP_PORT=8000 HTTPS_PORT=4443 HTTP3_PORT=4443 docker compose up --build
to access your appplication on [https://localhost:4443](https://localhost:4443).