2020-10-16 13:08:20 +02:00
|
|
|
# Build Options
|
|
|
|
|
2021-06-14 15:12:18 +02:00
|
|
|
## Selecting a Symfony Skeleton
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-10-16 13:08:20 +02:00
|
|
|
## Selecting a Specific Symfony Version
|
|
|
|
|
|
|
|
Use the `SYMFONY_VERSION` environment variable to select a specific Symfony version.
|
|
|
|
|
|
|
|
For instance, use the following command to install Symfony 4.4:
|
|
|
|
|
2021-06-14 15:12:18 +02:00
|
|
|
SYMFONY_VERSION=4.4.* docker-compose up --build
|
|
|
|
|
|
|
|
## 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.
|
|
|
|
The value must be [a valid Composer stability option](https://getcomposer.org/doc/04-schema.md#minimum-stability)) .
|
|
|
|
|
|
|
|
For instance, use the following command to use the `master` branch of Symfony:
|
|
|
|
|
2021-06-14 15:12:18 +02:00
|
|
|
STABILITY=dev docker-compose up --build
|
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
|
|
|
|
2021-06-14 15:12:18 +02:00
|
|
|
SERVER_NAME="symfony.wip, caddy:80" docker-compose up --build
|
2020-12-02 00:29:12 +01:00
|
|
|
|
|
|
|
If you use Mercure, keep `caddy:80` in the list to allow the PHP container to request the caddy service.
|