Skip to content

Commit

Permalink
fix: multiple yaml alias
Browse files Browse the repository at this point in the history
  • Loading branch information
colorfield committed Dec 18, 2023
1 parent 2174a65 commit ca8d5e6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ services:
lagoon.persistent.name: nginx # mount the persistent storage of nginx into this container
lagoon.persistent: /app/web/sites/default/files/ # location where the persistent storage should be mounted
lando.type: php-cli-drupal
<< : *default-volumes # loads the defined volumes from the top
<<: *default-volumes # loads the defined volumes from the top
user: root
volumes_from: ### mount the ssh-agent from the pygmy or cachalot ssh-agent. Automatically removed in CI.
- container:amazeeio-ssh-agent ### Local overrides to mount host SSH keys. Automatically removed in CI.
environment:
<< : *default-environment # loads the defined environment variables from the top
<<: *default-environment # loads the defined environment variables from the top

nginx:
build:
Expand All @@ -52,8 +52,9 @@ services:
lagoon.type: nginx-php-persistent
lagoon.persistent: /app/web/sites/default/files/
lando.type: nginx-drupal
<<: *default-volumes
<< : *default-user # uses the defined user from top
<<:
- *default-volumes
- *default-user # uses the defined user from top
depends_on:
- cli # basically just tells docker-compose to build the cli first
environment:
Expand All @@ -74,8 +75,9 @@ services:
lagoon.name: nginx
lagoon.persistent: /app/web/sites/default/files/ # define where the persistent storage should be mounted too
lando.type: php-fpm
<< : *default-volumes # loads the defined volumes from the top
<< : *default-user # uses the defined user from top
<<:
- *default-volumes # loads the defined volumes from the top
- *default-user # uses the defined user from top
depends_on:
- cli
environment:
Expand All @@ -87,7 +89,7 @@ services:
lagoon.type: mariadb
ports:
- '3306'
<< : *default-user # uses the defined user from top
<<: *default-user # uses the defined user from top
environment:
<<: *default-environment

Expand Down

0 comments on commit ca8d5e6

Please sign in to comment.