Skip to content

Commit

Permalink
Add minio config
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Dec 22, 2023
1 parent 328ecb5 commit 045f455
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions craft-cloud/config/cloud.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
#ddev-generated
$ddevProject = \craft\App::env('DDEV_PROJECT');

return [
'*' => [
],
'bref' => \craft\cloud\Config::create()->s3ClientOptions([
'use_path_style_endpoint' => true,
'endpoint' => "http://minio.ddev-$ddevProject.orb.local:10101"
]),
];
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions docker-compose.bref.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
services:
bref:
build:
context: bref
context: ./craft-cloud
dockerfile: bref.Dockerfile
container_name: ddev-${DDEV_PROJECT}-bref
expose:
- "8000"
env_file:
- .env.cloud
- ./craft-cloud/.env.static
environment:
HANDLER: ${DDEV_DOCROOT}/index.php
DOCUMENT_ROOT: ${DDEV_DOCROOT}
Expand All @@ -23,3 +24,4 @@ services:
volumes:
- .:/mnt/ddev_config
- ${DDEV_APPROOT}:/var/task:ro
- ${DDEV_APPROOT}/config/cloud.php:/var/task/config/cloud.php
5 changes: 1 addition & 4 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ pre_install_actions:
# DDEV environment variables can be interpolated into these filenames
project_files:
- docker-compose.bref.yaml
- bref
- .env.cloud
# - extra_files/
# - somefile.sh
- craft-cloud

# List of files and directories that are copied into the global .ddev directory
# DDEV environment variables can be interpolated into these filenames
Expand Down

0 comments on commit 045f455

Please sign in to comment.