-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lando.yml
110 lines (94 loc) · 2.32 KB
/
.lando.yml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: magento246 #change it, name = project URL
recipe: lemp
config:
webroot: www
php: '8.2'
#database: mariadb:10.6
database: mysql:8.0.36
xdebug: 'false'
composer_version: '2.2.23'
config:
php: config/php.ini
vhosts: config/nginx.conf
proxy:
mailhog:
- mailhog.lndo.site
phpmyadmin:
- phpmyadmin.lndo.site
services:
appserver:
type: php:8.2
build_as_root:
- rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && pkill -o -USR2 php-fpm
- apt update -y -q && apt install -y libxslt-dev libsodium-dev cron curl wget
- docker-php-ext-install xsl sockets sodium
build:
run_as_root:
- service cron start
run:
xdebug: true
overrides:
environment:
PHP_IDE_CONFIG: "serverName=appserver"
LANDO_HOST_IP: "host.docker.internal"
XDEBUG_CONFIG: "remote_enable=1 remote_host=host.docker.internal"
database:
portforward: 37013
creds:
user: magento
password: magento
database: magento
phpmyadmin:
type: phpmyadmin
portforward: true
hosts:
- database
elasticsearch:
type: elasticsearch:8.12.2
portforward: 9200
mem: 1025m
overrides:
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
redis:
type: redis
persist: false
portforward: 6379
mailhog:
type: mailhog
portforward: 1025
hogfrom:
- appserver
node:
type: node:19
ssl: false
globals:
grunt-cli: latest
tooling:
xdebug-on:
service: appserver
description: Enable xdebug for nginx.
cmd: rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && docker-php-ext-enable xdebug && pkill -o -USR2 php-fpm && echo "Xdebug enabled"
user: root
xdebug-off:
service: appserver
description: Disable xdebug for nginx.
cmd: rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && pkill -o -USR2 php-fpm && echo "Xdebug disabled"
user: root
bin/magento:
service: appserver
description: Magento 2 console commands
cmd: /app/www/bin/magento
n98-magerun2:
service: appserver
description: netz98 magerun CLI tools for Magento 2
cmd: php vendor/bin/n98-magerun2
npm:
service: node
node:
service: node
grunt:
service: node
gulp:
service: node