This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.platform.app.yaml
80 lines (62 loc) · 1.73 KB
/
.platform.app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: app
type: php:8.1
dependencies:
php:
composer/composer: "^2"
runtime:
extensions:
- amqp
- apcu
- blackfire
- ctype
- iconv
- mbstring
- pdo_pgsql
- redis
- sodium
- xsl
variables:
php:
opcache.preload: /app/config/preload.php
build:
flavor: none
disk: 1024
web:
locations:
"/":
root: "public"
expires: 1h
passthru: "/index.php"
mounts:
"/var": { source: local, source_path: var }
"/public/uploads": { source: service, service: files, source_path: uploads }
relationships:
database: "database:postgresql"
redis: "rediscache:redis"
rabbitmq: "queue:rabbitmq"
hooks:
build: |
set -x -e
curl -fs https://get.symfony.com/cloud/configurator | bash
symfony-build
deploy: |
set -x -e
symfony-deploy
crons:
security-check:
# Check that no security issues have been found for PHP packages deployed in production
# See https://github.com/fabpot/local-php-security-checker
spec: '50 23 * * *'
cmd: if [ "$PLATFORM_BRANCH" = "main" ]; then croncape php-security-checker; fi
comment_cleanup:
# Cleanup every night at 11.50 pm (UTC).
spec: '50 23 * * *'
cmd: |
if [ "$PLATFORM_BRANCH" = "master" ]; then
croncape symfony console app:comment:cleanup
fi
workers:
messenger:
commands:
# Consume "async" messages (as configured in the routing section of config/packages/messenger.yaml)
start: symfony console --time-limit=3600 --memory-limit=64M messenger:consume async