Last active
December 6, 2023 02:08
-
-
Save giteshk/35875a36decd24c61a9d0fb5c6afad42 to your computer and use it in GitHub Desktop.
Apigee Kickstart on GCE
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
# Copyright 2021 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
version: '3' | |
services: | |
apigee-kickstart: | |
image: ghcr.io/apigee/docker-apigee-drupal-kickstart:latest | |
ports: | |
- "80:80" | |
environment: | |
- DRUPAL_DATABASE_NAME=apigee_devportal | |
- DRUPAL_DATABASE_USER=dbuser | |
- DRUPAL_DATABASE_PASSWORD=passw0rd | |
- DRUPAL_DATABASE_HOST=apigee-kickstart-database | |
- DRUPAL_DATABASE_PORT=3306 | |
- DRUPAL_DATABASE_DRIVER=mysql | |
- AUTO_INSTALL_PORTAL=${AUTO_INSTALL_PORTAL} | |
links: | |
- apigee-kickstart-database | |
depends_on: | |
apigee-kickstart-database: | |
condition: service_healthy | |
volumes: | |
- drupal-public-files:/app/code/web/sites/default/files | |
- drupal-private-files:/app/code/web/sites/default/private | |
apigee-kickstart-database: | |
image: mariadb:lts | |
volumes: | |
- apigee-kickstart-database-volume:/var/lib/mysql:delegated | |
environment: | |
- MYSQL_DATABASE=apigee_devportal | |
- MYSQL_USER=dbuser | |
- MYSQL_PASSWORD=passw0rd | |
- MYSQL_ROOT_PASSWORD=rootpasswd | |
healthcheck: | |
test: [ "CMD-SHELL", 'mysql --database=$$MYSQL_DATABASE --password=$$MYSQL_ROOT_PASSWORD --execute="show tables;" --skip-column-names -B' ] | |
interval: 10s | |
timeout: 10s | |
retries: 6 | |
volumes: | |
apigee-kickstart-database-volume: | |
drupal-public-files: | |
drupal-private-files: |
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
#!/bin/bash | |
VERSION=${1:-1.27.4} | |
wget https://gist.githubusercontent.com/giteshk/35875a36decd24c61a9d0fb5c6afad42/raw/f3ef0a6edbf345acb5702d7de0e0f9a4226dedfc/docker-compose.yaml | |
docker run --rm \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v "$PWD:$PWD" \ | |
-w="$PWD" \ | |
docker/compose:${VERSION} docker-compose up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment