Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: multiple yaml alias #118

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading