-
Notifications
You must be signed in to change notification settings - Fork 0
/
.symfony.cloud.yaml
65 lines (51 loc) · 1.21 KB
/
.symfony.cloud.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
name: app
type: php:7.3
runtime:
extensions:
- xsl
- amqp
- redis
- apcu
- mbstring
- sodium
- iconv
- ctype
- pdo_pgsql
- blackfire
build:
flavor: none
relationships:
database: "db:postgresql"
redis: "rediscache:redis"
rabbitmq: "queue:rabbitmq"
web:
locations:
"/":
root: "public"
expires: 1h
passthru: "/index.php"
redisache:
type: redis:5.0
disk: 512
mounts:
"/var": { source: local, source_path: var }
"/public/uploads": { source: service, service: files, source_path: uploads }
hooks:
build: |
set -x -e
curl -s https://get.symfony.com/cloud/configurator | (>&2 bash)
crons:
comment_cleanup:
# Cleanup every night at 11.50 pm (UTC).
spec: '50 23 * * *'
cmd: |
if [ "$SYMFONY_BRANCH" = "master" ]; then
croncape symfony console app:comment:cleanup
fi
workers:
messages:
commands:
start: |
set -x -e
(>&2 symfony-deploy)
php bin/console messenger:consume async -vv --time-limit 3600--memory-limit=128M