Adding --detach option to the command

This commit is contained in:
Maxime Hélias
2023-10-02 10:52:32 +02:00
committed by Maxime Helias
parent 12a36a74f5
commit d620a5102a
4 changed files with 10 additions and 10 deletions

View File

@@ -8,10 +8,10 @@ For instance, use the following command to install Symfony 5.4:
On Linux:
SYMFONY_VERSION=5.4.* docker compose up --wait
SYMFONY_VERSION=5.4.* docker compose up -d --wait
On Windows:
set SYMFONY_VERSION=5.4.*&& docker compose up --wait&set SYMFONY_VERSION=
set SYMFONY_VERSION=5.4.*&& docker compose up -d --wait&set SYMFONY_VERSION=
## Installing Development Versions of Symfony
@@ -22,17 +22,17 @@ For instance, use the following command to use the development branch of Symfony
On Linux:
STABILITY=dev docker compose up --wait
STABILITY=dev docker compose up -d --wait
On Windows:
set STABILITY=dev&& docker compose up --wait&set STABILITY=
set STABILITY=dev&& docker compose up -d --wait&set STABILITY=
## Customizing the Server Name
Use the `SERVER_NAME` environment variable to define your custom server name(s).
SERVER_NAME="app.localhost" docker compose up --wait
SERVER_NAME="app.localhost" docker compose up -d --wait
*Tips: You can define your server name variable in your `.env` file to keep it at each up*
@@ -40,7 +40,7 @@ Use the `SERVER_NAME` environment variable to define your custom server name(s).
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 --wait
HTTP_PORT=8000 HTTPS_PORT=4443 HTTP3_PORT=4443 docker compose up -d --wait
to access your application on [https://localhost:4443](https://localhost:4443).

View File

@@ -61,7 +61,7 @@ Go into the directory containing your project (`<project-name>`), and start the
SERVER_NAME=your-domain-name.example.com \
APP_SECRET=ChangeMe \
CADDY_MERCURE_JWT_SECRET=ChangeThisMercureHubJWTSecretKey \
docker compose -f docker-compose.yml -f docker-compose.prod.yml up --wait
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --wait
```
Be sure to replace `your-domain-name.example.com` by your actual domain name and to set the values of `APP_SECRET`, `CADDY_MERCURE_JWT_SECRET` to cryptographically secure random values.
@@ -77,7 +77,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=ChangeThisMercureHubJWTSecretKey \
docker compose -f docker-compose.yml -f docker-compose.prod.yml up --wait
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --wait
```
## Deploying on Multiple Nodes