2020-10-16 13:08:20 +02:00
# Build Options
## Selecting a Specific Symfony Version
Use the `SYMFONY_VERSION` environment variable to select a specific Symfony version.
2023-12-04 15:22:19 +01:00
For instance, use the following command to install Symfony 6.4:
2020-10-16 13:08:20 +02:00
2022-11-30 17:16:59 +02:00
On Linux:
2023-12-04 15:22:19 +01:00
SYMFONY_VERSION=6.4.* docker compose up -d --wait
2022-11-30 17:16:59 +02:00
On Windows:
2023-12-04 15:22:19 +01:00
set SYMFONY_VERSION=6.4.* & & docker compose up -d --wait& set SYMFONY_VERSION=
2021-06-14 15:12:18 +02:00
## Installing Development Versions of Symfony
2020-10-16 13:08:20 +02:00
To install a non-stable version of Symfony, use the `STABILITY` environment variable during the build.
2023-03-07 12:49:33 +01:00
The value must be [a valid Composer stability option ](https://getcomposer.org/doc/04-schema.md#minimum-stability ).
2020-10-16 13:08:20 +02:00
2022-08-05 10:21:54 +02:00
For instance, use the following command to use the development branch of Symfony:
2020-10-16 13:08:20 +02:00
2022-11-30 17:16:59 +02:00
On Linux:
2023-10-02 10:52:32 +02:00
STABILITY=dev docker compose up -d --wait
2023-07-31 14:21:06 +02:00
2022-11-30 17:16:59 +02:00
On Windows:
2023-10-26 17:45:52 +02:00
set STABILITY=dev & & docker compose up -d --wait& set STABILITY=
2020-10-16 13:08:20 +02:00
## Customizing the Server Name
2020-12-02 00:29:12 +01:00
Use the `SERVER_NAME` environment variable to define your custom server name(s).
2020-10-16 13:08:20 +02:00
2023-10-02 10:52:32 +02:00
SERVER_NAME="app.localhost" docker compose up -d --wait
2021-12-10 19:00:31 +01:00
2023-12-03 21:51:35 +01:00
> [!TIP]
> You can define your server name variable in your `.env` file to keep it at each up
2023-01-20 09:32:22 +01:00
2021-12-10 19:00:31 +01:00
## Using custom HTTP ports
Use the environment variables `HTTP_PORT` , `HTTPS_PORT` and/or `HTTP3_PORT` to adjust the ports to your needs, e.g.
2023-10-02 10:52:32 +02:00
HTTP_PORT=8000 HTTPS_PORT=4443 HTTP3_PORT=4443 docker compose up -d --wait
2021-12-10 19:00:31 +01:00
2023-03-07 12:49:33 +01:00
to access your application on [https://localhost:4443 ](https://localhost:4443 ).
2023-01-20 09:32:22 +01:00
2023-12-03 21:51:35 +01:00
> [!NOTE]
> Let's Encrypt only supports the standard HTTP and HTTPS ports. Creating a Let's Encrypt certificate for another port will not work, you have to use the standard ports or to configure Caddy to use another provider.