-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Blaize Kaye
committed
Dec 19, 2024
1 parent
7fda9aa
commit 76c107c
Showing
5 changed files
with
255 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Below is your configuration for lagoon-sync. | ||
# These data can live in either a separate .lagoon-sync.yml file | ||
# or your .lagoon.yml file. | ||
|
||
# If your project is on anything except the amazeeio cluster, which are the defaults | ||
# and you're running lagoon-sync from a local container, you may have to set these variables | ||
# you can grab this information from running the lagoon cli's "lagoon config list" | ||
# this will output the ssh endpoints and ports you need. | ||
# Typically, though, this information is also available in the environment variables | ||
# LAGOON_CONFIG_SSH_HOST and LAGOON_CONFIG_SSH_PORT | ||
# | ||
# These, for instance, are the amazeeio defaults | ||
# ssh: ssh.lagoon.amazeeio.cloud:32222 | ||
# api: https://api.lagoon.amazeeio.cloud/graphql | ||
|
||
lagoon-sync: | ||
mariadb: | ||
type: mariadb | ||
config: | ||
hostname: "${MARIADB_HOST:-mariadb}" | ||
username: "${MARIADB_USERNAME:-lagoon}" | ||
password: "${MARIADB_PASSWORD:-lagoon}" | ||
port: "${MARIADB_PORT:-3306}" | ||
database: "${MARIADB_DATABASE:-lagoon}" | ||
cli: | ||
type: files | ||
config: | ||
sync-directory: "/app/storage/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
version: '2.3' | ||
|
||
x-volumes: | ||
&default-volumes | ||
# Define all volumes you would like to have real-time mounted into the docker containers | ||
volumes: | ||
- ./:/app:delegated ### Local overrides to mount host filesystem. Automatically removed in CI and PROD. | ||
|
||
x-environment: | ||
&default-environment | ||
# Route that should be used locally, if you are using pygmy, this route *must* end with .docker.amazee.io | ||
LAGOON_ROUTE: &default-url http://${COMPOSE_PROJECT_NAME:-laravel10}.docker.amazee.io | ||
# Uncomment if you like to have the system behave like in production | ||
#LAGOON_ENVIRONMENT_TYPE: production | ||
# Uncomment to enable xdebug and then restart via `docker-compose up -d` | ||
#XDEBUG_ENABLE: "true" | ||
|
||
x-user: | ||
&default-user | ||
# The default user under which the containers should run. Change this if you are on linux and run with another user than id `1000` | ||
user: '1000' | ||
|
||
volumes: | ||
files: | ||
{} | ||
|
||
services: | ||
|
||
cli: # cli container, will be used for executing composer and any local commands (drush, drupal, etc.) | ||
build: | ||
context: ./ | ||
dockerfile: .lagoon/cli.dockerfile | ||
image: &cli-image ${COMPOSE_PROJECT_NAME:-laravel10}-cli # this image will be reused as `CLI_IMAGE` in subsequent Docker builds | ||
labels: | ||
# Lagoon Labels | ||
lagoon.type: cli-persistent | ||
lagoon.persistent.name: nginx # mount the persistent storage of nginx into this container | ||
lagoon.persistent: /app/storage/ # location where the persistent storage should be mounted | ||
# lando.type: php-cli-drupal | ||
<< : *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 | ||
|
||
nginx: | ||
build: | ||
context: ./ | ||
dockerfile: .lagoon/nginx.dockerfile | ||
args: | ||
CLI_IMAGE: *cli-image # Inject the name of the cli image | ||
labels: | ||
lagoon.type: nginx-php-persistent | ||
lagoon.persistent: /app/storage/ # define where the persistent storage should be mounted too | ||
<< : *default-volumes # loads the defined volumes from the top | ||
user: '1000' | ||
depends_on: | ||
- cli # basically just tells docker-compose to build the cli first | ||
environment: | ||
<< : *default-environment # loads the defined environment variables from the top | ||
LAGOON_LOCALDEV_URL: *default-url | ||
networks: | ||
- amazeeio-network | ||
- default | ||
php: | ||
build: | ||
context: ./ | ||
dockerfile: .lagoon/php.dockerfile | ||
args: | ||
CLI_IMAGE: *cli-image | ||
labels: | ||
lagoon.type: nginx-php-persistent | ||
lagoon.name: nginx # we want this service be part of the nginx pod in Lagoon | ||
lagoon.persistent: /app/storage/ # define where the persistent storage should be mounted too | ||
<< : *default-volumes # loads the defined volumes from the top | ||
user: '1000' | ||
depends_on: | ||
- cli # basically just tells docker-compose to build the cli first | ||
environment: | ||
<< : *default-environment # loads the defined environment variables from the top | ||
|
||
mariadb: | ||
image: uselagoon/mariadb-10.5:latest | ||
labels: | ||
lagoon.type: mariadb | ||
ports: | ||
- "3306" # exposes the port 3306 with a random local port, find it with `docker-compose port mariadb 3306` | ||
user: '1000' | ||
environment: | ||
<< : *default-environment | ||
|
||
networks: | ||
amazeeio-network: | ||
external: true |