Skip to content

Commit

Permalink
Bref - Cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Dec 17, 2023
1 parent a8b3de8 commit ccd23b0
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .env.cloud
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
CRAFT_ALLOW_UPDATES=0
CRAFT_BACKUP_COMMAND=0
CRAFT_BACKUP_ON_UPDATE=0
CRAFT_BASE_PATH=/var/task
CRAFT_CLOUD_BUILD_ID=
CRAFT_CLOUD_SIGNING_KEY=
CRAFT_CLOUD_ENVIRONMENT_ID=
CRAFT_CLOUD_PROJECT_ID=
CRAFT_CLOUD_REDIS_URL=
CRAFT_CLOUD_SQS_URL=
CRAFT_DB_DATABASE=
CRAFT_DB_DRIVER=
CRAFT_DB_DSN=
CRAFT_DB_PASSWORD=
CRAFT_DB_SCHEMA=public
CRAFT_DB_SERVER=
CRAFT_DB_TABLE_PREFIX=
CRAFT_DB_USER=
CRAFT_EPHEMERAL=1
CRAFT_IMAGE_DRIVER=gd
CRAFT_LOG_ALLOW_LINE_BREAKS=0
CRAFT_MAX_UPLOAD_FILE_SIZE=200000000
CRAFT_OMIT_SCRIPT_NAME_IN_URLS=1
CRAFT_PATH_PARAM=
CRAFT_RESTORE_COMMAND=0
CRAFT_RUN_QUEUE_AUTOMATICALLY=0
CRAFT_SANITIZE_CP_IMAGE_UPLOADS=0
CRAFT_SECRETS_PATH=
CRAFT_SECURITY_KEY=
CRAFT_STORAGE_PATH=/tmp/craft-storage
CRAFT_STREAM_LOG=1
CRAFT_WEB_ROOT=/var/task/web
RUNTIME_CLASS=craft\cloud\runtime\Runtime
SCRIPT_NAME=/index.php
10 changes: 6 additions & 4 deletions docker-compose.bref.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ services:
container_name: ddev-${DDEV_PROJECT}-bref
expose:
- "8000"
env_file:
- .env.cloud
environment:
HANDLER: web/index.php
DOCUMENT_ROOT: web
HANDLER: ${DDEV_DOCROOT}/index.php
DOCUMENT_ROOT: ${DDEV_DOCROOT}
VIRTUAL_HOST: $DDEV_HOSTNAME
HTTP_EXPOSE: "8000:8000"
HTTPS_EXPOSE: "8081:8000"
PHP_IDE_CONFIG: serverName=bref
external_links:
- ddev-router:${DDEV_PROJECT}.ddev.site
volumes:
- ".:/mnt/ddev_config"
- ${DDEV_APPROOT}:/var/task:ro
- ".:/mnt/ddev_config"
- ${DDEV_APPROOT}:/var/task:ro
7 changes: 6 additions & 1 deletion install.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Details about the install.yaml file are at https://ddev.readthedocs.io/en/latest/users/extend/additional-services/#sections-and-features-of-ddev-get-add-on-installyaml

name: bref
name: craft-cloud

# pre_install_actions - list of actions to run before installing the addon.
# Examples would be removing an extraneous docker volume,
Expand Down Expand Up @@ -69,6 +69,11 @@ global_files:
# - commands
# - homeadditions

# List of add-on names that this add-on depends on
dependencies:
- redis
- oblakstudio/ddev-minio

# DDEV environment variables can be interpolated into these actions
post_install_actions:
# - chmod +x ~/.ddev/commands/web/somecommand
Expand Down

0 comments on commit ccd23b0

Please sign in to comment.