mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
Add recipe for platformsh-meta
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
name: app
|
||||
|
||||
type: php:8.0
|
||||
|
||||
runtime:
|
||||
extensions:
|
||||
- apcu
|
||||
- mbstring
|
||||
- sodium
|
||||
- ctype
|
||||
- iconv
|
||||
- xsl
|
||||
- pdo_pgsql
|
||||
- blackfire
|
||||
|
||||
variables:
|
||||
php:
|
||||
opcache.preload: /app/config/preload.php
|
||||
|
||||
build:
|
||||
flavor: none
|
||||
|
||||
disk: 512
|
||||
|
||||
relationships:
|
||||
database: "database:postgresql"
|
||||
|
||||
web:
|
||||
locations:
|
||||
"/":
|
||||
root: "public"
|
||||
expires: 1h
|
||||
passthru: "/index.php"
|
||||
|
||||
mounts:
|
||||
"/var": { source: local, source_path: var }
|
||||
|
||||
hooks:
|
||||
build: |
|
||||
set -x -e
|
||||
|
||||
curl -fs https://get.symfony.com/cloud/configurator | (>&2 bash)
|
||||
|
||||
(>&2 symfony-build)
|
||||
|
||||
deploy: |
|
||||
set -x -e
|
||||
|
||||
(>&2 symfony-deploy)
|
||||
|
||||
workers:
|
||||
messenger:
|
||||
# PHP background workers usually don't require much CPU.
|
||||
# See https://symfony.com/doc/current/cloud/cookbooks/resources_allocation.html
|
||||
size: XS
|
||||
resources:
|
||||
base_memory: 64 # Keep in sync with the `memory-limit` flag value
|
||||
memory_ratio: 128
|
||||
commands:
|
||||
# Don't forget to update your receiver name(s)
|
||||
start: symfony console --time-limit=3600 --memory-limit=64M messenger:consume async
|
||||
@@ -0,0 +1,2 @@
|
||||
"https://{all}/": { type: upstream, upstream: "app:http" }
|
||||
"http://{all}/": { type: redirect, to: "https://{all}/" }
|
||||
@@ -0,0 +1,3 @@
|
||||
database:
|
||||
type: postgresql:13
|
||||
disk: 1024
|
||||
@@ -0,0 +1,20 @@
|
||||
framework:
|
||||
messenger:
|
||||
failure_transport: failed
|
||||
|
||||
transports:
|
||||
# https://symfony.com/doc/current/messenger.html#transport-configuration
|
||||
async:
|
||||
dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
|
||||
options:
|
||||
use_notify: true
|
||||
check_delayed_interval: 60000
|
||||
retry_strategy:
|
||||
max_retries: 3
|
||||
multiplier: 2
|
||||
failed: 'doctrine://default?queue_name=failed'
|
||||
# sync: 'sync://'
|
||||
|
||||
routing:
|
||||
# Route your messages to the transports
|
||||
# 'App\Message\YourMessage': async
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
".platform/": ".platform/",
|
||||
".platform.app.yaml": ".platform.app.yaml",
|
||||
"php.ini": "php.ini"
|
||||
},
|
||||
"env": {
|
||||
"MESSENGER_TRANSPORT_DSN": "doctrine://default"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
allow_url_include=off
|
||||
assert.active=off
|
||||
display_errors=off
|
||||
display_startup_errors=off
|
||||
max_execution_time=30
|
||||
session.use_strict_mode=On
|
||||
realpath_cache_ttl=3600
|
||||
zend.detect_unicode=Off
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"aliases": ["platformsh"]
|
||||
}
|
||||
Reference in New Issue
Block a user