-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.magento.app.yaml
63 lines (51 loc) · 1.34 KB
/
.magento.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
# This file describes an application. You can have multiple applications
# in the same project.
# The name of this app. Must be unique within a project.
name: mymagento
type: php:7.4
# 1. Change flavor to none.
build:
flavor: none
# 2. Add composer ^2.0 as a php dependency.
dependencies:
php:
composer/composer: '^2.0'
# 3. Add a build hook to run the build tasks using Composer 2.x.
runtime:
extensions:
- xsl
- newrelic
- sodium
# The configuration of app when it is exposed to the web.
web:
locations:
"/":
root: "web"
allow: true
scripts: true
passthru: "/index.html"
index:
- index.html
expires: -1
hooks:
build: |
echo "Build"
deploy: |
echo "Deploy"
rm -rf var/**
rm -rf app/etc/**
rm -rf pub/media/**
rm -rf pub/static/**
# side is in the form `<service name>:<endpoint name>`.
#relationships:
#relationships:
#database: "mysql:mysql"
#elasticsearch: "elasticsearch:elasticsearch"
#opensearch1-1: "opensearch1-1:opensearch"
mounts:
"var": "shared:files/var"
"app/etc": "shared:files/etc"
"pub/media": "shared:files/media"
"pub/static": "shared:files/static"
# The size of the persistent disk of the application (in MB).
disk: 2048