Skip to content

Commit c91fbf9

Browse files
committed
initial lando commit
1 parent eed2dea commit c91fbf9

File tree

2 files changed

+42
-6
lines changed

2 files changed

+42
-6
lines changed

.lando.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: govcms-lando-demo
2+
recipe: lagoon
3+
services:
4+
cli:
5+
volumes:
6+
- ./themes:/app/web/themes/custom
7+
- ./files:/app/web/sites/default/files:delegated
8+
- ./tests/behat/features:/app/tests/behat/features
9+
- ./tests/behat/screenshots:/app/tests/behat/screenshots
10+
- ./tests/phpunit/tests:/app/tests/phpunit/tests
11+
- ./config:/app/config
12+
php:
13+
volumes:
14+
- ./themes:/app/web/themes/custom
15+
- ./files:/app/web/sites/default/files:delegated
16+
- ./tests/behat/features:/app/tests/behat/features
17+
- ./tests/behat/screenshots:/app/tests/behat/screenshots
18+
- ./tests/phpunit/tests:/app/tests/phpunit/tests
19+
- ./config:/app/config
20+
nginx:
21+
volumes:
22+
- ./themes:/app/web/themes/custom
23+
- ./files:/app/web/sites/default/files:delegated
24+
25+
config:
26+
flavor: drupal
27+
build:
28+
- mkdir -p /app/web/sites/default/files/private/tmp
29+
- /app/vendor/bin/govcms-db-update
30+
- /app/vendor/bin/govcms-config-import
31+
- /app/vendor/bin/govcms-cache-rebuild
32+
- /app/vendor/bin/govcms-enable_modules

docker-compose.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@ version: '2.3'
22

33
# This value intentionally matches the project name on Lagoon.
44
# It is used to name the CLI_IMAGE to use as a build arg locally.
5-
x-lagoon-project: &lagoon-project
6-
govcms-lando-demo
5+
x-lagoon-project: &lagoon-project govcms-lando-demo
76

8-
x-lagoon-local-dev-url: &lagoon-local-dev-url
9-
http://govcms-lando-demo.docker.amazee.io
7+
x-lagoon-local-dev-url: &lagoon-local-dev-url http://govcms-lando-demo.docker.amazee.io
108

119
# See GOVCMS_IMAGE_VERSION in "Variables" at https://github.com/govCMS/govCMS8/wiki
12-
x-govcms-image-version: &govcms-image-version
13-
${GOVCMS_IMAGE_VERSION:-10.x-latest}
10+
x-govcms-image-version: &govcms-image-version ${GOVCMS_IMAGE_VERSION:-10.x-latest}
1411

1512
x-volumes: &default-volumes
1613
volumes:
@@ -57,6 +54,7 @@ services:
5754
lagoon.type: cli-persistent
5855
lagoon.persistent.name: nginx
5956
lagoon.persistent: /app/web/sites/default/files/
57+
lando.type: php-cli-drupal
6058
<< : *default-volumes
6159
environment:
6260
<< : *default-environment
@@ -75,6 +73,7 @@ services:
7573
SITE_AUDIT_VERSION: ${SITE_AUDIT_VERSION:-7.x-3.x}
7674
labels:
7775
lagoon.type: none
76+
lando.type: php-cli-drupal
7877
<< : *default-volumes
7978
depends_on:
8079
- cli
@@ -91,6 +90,7 @@ services:
9190
labels:
9291
lagoon.type: nginx-php-persistent
9392
lagoon.persistent: /app/web/sites/default/files/
93+
lando.type: nginx-drupal
9494
<< : *default-volumes
9595
depends_on:
9696
- cli
@@ -112,6 +112,7 @@ services:
112112
lagoon.type: nginx-php-persistent
113113
lagoon.name: nginx
114114
lagoon.persistent: /app/web/sites/default/files/
115+
lando.type: php-fpm
115116
<< : *default-volumes
116117
depends_on:
117118
- cli
@@ -123,6 +124,7 @@ services:
123124
labels:
124125
lagoon.type: mariadb
125126
lagoon.image: govcms/mariadb-drupal:10.x-latest
127+
lando.type: mariadb-drupal
126128
ports:
127129
- "3306" # Find port on host with `docker-compose port mariadb 3306`
128130
environment:
@@ -132,6 +134,7 @@ services:
132134
image: govcms/av:latest
133135
labels:
134136
lagoon.type: none
137+
lando.type: none
135138

136139
# Uncomment to enable solr.
137140
# solr:
@@ -156,6 +159,7 @@ services:
156159
- test
157160
labels:
158161
lagoon.type: none
162+
lando.type: none
159163
<< : *default-volumes
160164

161165
networks:

0 commit comments

Comments
 (0)