|
1 | 1 | --- |
2 | 2 | services: |
3 | | - php: |
4 | | - image: ${IMAGES_PREFIX:-}app-php |
5 | | - restart: unless-stopped |
6 | | - environment: |
7 | | - SERVER_NAME: ${SERVER_NAME:-localhost}, php:80 |
8 | | - MERCURE_PUBLISHER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!} |
9 | | - MERCURE_SUBSCRIBER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!} |
10 | | - # Run "composer require symfony/orm-pack" to install and configure Doctrine ORM |
11 | | - DATABASE_URL: postgresql://${POSTGRES_USER:-app}:${POSTGRES_PASSWORD:-!ChangeMe!}@database:5432/${POSTGRES_DB:-app}?serverVersion=${POSTGRES_VERSION:-15}&charset=${POSTGRES_CHARSET:-utf8} |
12 | | - # Run "composer require symfony/mercure-bundle" to install and configure the Mercure integration |
13 | | - MERCURE_URL: ${CADDY_MERCURE_URL:-http://php/.well-known/mercure} |
14 | | - MERCURE_PUBLIC_URL: ${CADDY_MERCURE_PUBLIC_URL:-https://${SERVER_NAME:-localhost}:${HTTPS_PORT:-443}/.well-known/mercure} |
15 | | - MERCURE_JWT_SECRET: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!} |
16 | | - # The two next lines can be removed after initial installation |
17 | | - SYMFONY_VERSION: ${SYMFONY_VERSION:-} |
18 | | - STABILITY: ${STABILITY:-stable} |
19 | | - volumes: |
20 | | - - caddy_data:/data |
21 | | - - caddy_config:/config |
22 | | - ports: |
23 | | - # HTTP |
24 | | - - target: 80 |
25 | | - published: ${HTTP_PORT:-80} |
26 | | - protocol: tcp |
27 | | - # HTTPS |
28 | | - - target: 443 |
29 | | - published: ${HTTPS_PORT:-443} |
30 | | - protocol: tcp |
31 | | - # HTTP/3 |
32 | | - - target: 443 |
33 | | - published: ${HTTP3_PORT:-443} |
34 | | - protocol: udp |
| 3 | + php: |
| 4 | + image: ${IMAGES_PREFIX:-}app-php |
| 5 | + restart: unless-stopped |
| 6 | + environment: |
| 7 | + SERVER_NAME: ${SERVER_NAME:-localhost}, php:80 |
| 8 | + MERCURE_PUBLISHER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!} |
| 9 | + MERCURE_SUBSCRIBER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!} |
| 10 | + # Run "composer require symfony/orm-pack" to install and configure Doctrine ORM |
| 11 | + DATABASE_URL: postgresql://${POSTGRES_USER:-app}:${POSTGRES_PASSWORD:-!ChangeMe!}@database:5432/${POSTGRES_DB:-app}?serverVersion=${POSTGRES_VERSION:-15}&charset=${POSTGRES_CHARSET:-utf8} |
| 12 | + # Run "composer require symfony/mercure-bundle" to install and configure the Mercure integration |
| 13 | + MERCURE_URL: ${CADDY_MERCURE_URL:-http://php/.well-known/mercure} |
| 14 | + MERCURE_PUBLIC_URL: ${CADDY_MERCURE_PUBLIC_URL:-https://${SERVER_NAME:-localhost}:${HTTPS_PORT:-443}/.well-known/mercure} |
| 15 | + MERCURE_JWT_SECRET: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!} |
| 16 | + # The two next lines can be removed after initial installation |
| 17 | + SYMFONY_VERSION: ${SYMFONY_VERSION:-} |
| 18 | + STABILITY: ${STABILITY:-stable} |
| 19 | + volumes: |
| 20 | + - caddy_data:/data |
| 21 | + - caddy_config:/config |
| 22 | + ports: |
| 23 | + # HTTP |
| 24 | + - target: 80 |
| 25 | + published: ${HTTP_PORT:-80} |
| 26 | + protocol: tcp |
| 27 | + # HTTPS |
| 28 | + - target: 443 |
| 29 | + published: ${HTTPS_PORT:-443} |
| 30 | + protocol: tcp |
| 31 | + # HTTP/3 |
| 32 | + - target: 443 |
| 33 | + published: ${HTTP3_PORT:-443} |
| 34 | + protocol: udp |
35 | 35 |
|
36 | 36 | # Mercure is installed as a Caddy module, prevent the Flex recipe from installing another service |
37 | 37 | ###> symfony/mercure-bundle ### |
38 | 38 | ###< symfony/mercure-bundle ### |
39 | 39 |
|
40 | 40 | volumes: |
41 | | - caddy_data: |
42 | | - caddy_config: |
| 41 | + caddy_data: |
| 42 | + caddy_config: |
43 | 43 | ###> symfony/mercure-bundle ### |
44 | 44 | ###< symfony/mercure-bundle ### |
0 commit comments