forked from dgading/lando-decoupled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.yml
66 lines (63 loc) · 1.39 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
name: decoupled-dev
proxy:
nginx:
- cms.decoupled.lndo.site
nodejs:
- decoupled.lndo.site
services:
cms:
type: php:7.2
via: nginx
config:
server: config/nginx/site.conf
ssl: true
webroot: backend/web
xdebug: false
overrides:
services:
environment:
DB_HOST: mariadb
DB_USER: cms
DB_PASSWORD: cms
DB_NAME: cms
DB_PORT: 3306
build:
- "composer --ansi --working-dir=/app/backend install"
mariadb:
type: mariadb:10.3
portforward: true
creds:
user: cms
password: cms
database: cms
nodejs:
type: node:8.9
ssl: true
build:
- "cd frontend && yarn install"
overrides:
services:
ports: [3333:3333]
tooling:
composer:
service: cms
cmd:
- "composer --ansi --working-dir=/app/backend"
drush:
service: cms
cmd:
- "/app/backend/vendor/drush/drush/drush --root=/app/backend/web"
node:
service: nodejs
npm:
service: nodejs
cmd:
- "npm --cwd=/app/frontend"
yarn:
service: nodejs
cmd:
- "yarn --cwd=/app/frontend"
events:
post-start:
- cms: "cp $LANDO_MOUNT/config/drupal/lando.settings.php $LANDO_MOUNT/backend/web/sites/default/settings.php"
- cms: "cp $LANDO_MOUNT/backend/web/sites/example.settings.local.php $LANDO_MOUNT/backend/web/sites/default/settings.local.php"