forked from userfrosting/UserFrosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.dist.yml
69 lines (62 loc) · 1.47 KB
/
.lando.dist.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
# Lando is a development tool, do not use it hosting a production website
name: userfrosting
recipe: lamp
config:
webroot: ./public
php: '7.4'
composer_version: '2-latest'
database: mariadb
xdebug: true
services:
appserver:
build_as_root:
- apt-get update -y
- apt-get install -my wget gnupg
- a2enmod headers
# Patch to bring NodeJS into app server container
# https://docs.lando.dev/guides/installing-node-in-your-lando-php-service.html
- curl -sL https://deb.nodesource.com/setup_14.x | bash -
- apt-get install -y nodejs
overrides:
environment:
PHP_IDE_CONFIG: "serverName=userfrosting.lndo.site"
MAIL_MAILER: "mail"
DB_DRIVER: "mysql"
DB_HOST: "database"
DB_PORT: "3306"
DB_NAME: "lamp"
DB_USER: "lamp"
DB_PASSWORD: "lamp"
ssl: true
# Redis cache
cache:
type: redis
# phpMyAdmin
pma:
type: phpmyadmin
hosts:
- database
# MailHog
mh:
type: mailhog:v1.0.0
portforward: false
hogfrom:
# Set UF mailer config to 'mail' complete integration
- appserver
proxy:
pma:
- pma.userfrosting.lndo.site
mh:
- mh.userfrosting.lndo.site
tooling:
phpunit:
service: appserver
description: "Run PHP Unit tests"
cmd: app/vendor/bin/phpunit
redis-cli:
service: cache
description: "Redis cache CLI"
bakery:
service: appserver
description: "UserFrosting CLI"
cmd: php bakery