forked from the-fast-track/book-5.2-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.symfony.cloud.yaml
72 lines (54 loc) · 1.31 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
66
67
68
69
70
71
72
name: app
type: php:7.4
runtime:
extensions:
- amqp
- redis
- blackfire
- xsl
- pdo_pgsql
- apcu
- mbstring
- sodium
- ctype
- iconv
#variables:
# php:
# # uncomment on PHP 7.4+
# #opcache.preload: /app/config/preload.php
build:
flavor: none
disk: 512
relationships:
database: "db:postgresql"
redis: "rediscache:redis"
rabbitmq: "queue:rabbitmq"
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 }
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)
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: symfony console messenger:consume async -vv --time-limit=3600 --memory-limit=128M