feat: allow to install the website skeleton (#152)
* feat: allow to install the website skeleton * wip * wip * cleanup * revert rename in docs * cleanup
This commit is contained in:
@@ -1,24 +1,33 @@
|
||||
# Build Options
|
||||
|
||||
## 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
|
||||
|
||||
## 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:
|
||||
|
||||
$ SYMFONY_VERSION=4.4.* docker-compose up --build
|
||||
SYMFONY_VERSION=4.4.* docker-compose up --build
|
||||
|
||||
## Installing Development Versions of Symfony
|
||||
|
||||
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:
|
||||
|
||||
$ 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.wip, caddy:80" docker-compose up --build
|
||||
SERVER_NAME="symfony.wip, 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.
|
||||
|
||||
@@ -82,7 +82,7 @@ Alternatively, if you don't want to expose an HTTPS server but only an HTTP one,
|
||||
SERVER_NAME=:80 \
|
||||
APP_SECRET=ChangeMe \
|
||||
CADDY_MERCURE_JWT_SECRET=ChangeMe \
|
||||
-docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
|
||||
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
|
||||
```
|
||||
|
||||
## Deploying on Multiple Nodes
|
||||
|
||||
@@ -51,13 +51,17 @@ services:
|
||||
|
||||
Then run:
|
||||
|
||||
$ docker-compose -f docker-compose.yml -f docker-compose.debug.yml up -d
|
||||
```console
|
||||
docker-compose -f docker-compose.yml -f docker-compose.debug.yml up -d
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
Inspect the installation with the following command. The requested Xdebug version should be displayed in the output.
|
||||
|
||||
$ docker-compose exec php php --version
|
||||
|
||||
PHP ...
|
||||
with Xdebug v3.0.4 ...
|
||||
```console
|
||||
$ docker-compose exec php php --version
|
||||
|
||||
PHP ...
|
||||
with Xdebug v3.0.4 ...
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user