Skip to content

Instantly share code, notes, and snippets.

@timkelty
Created December 13, 2023 16:36
Show Gist options
  • Save timkelty/e260de9516cae6db28b5963759b455c1 to your computer and use it in GitHub Desktop.
Save timkelty/e260de9516cae6db28b5963759b455c1 to your computer and use it in GitHub Desktop.
Bref service for DDEV
services:
bref:
build:
context: bref
image: bref/php-82-fpm-dev:2
container_name: ddev-${DDEV_SITENAME}-bref
expose:
- "8000"
volumes:
- ${DDEV_APPROOT}:/var/task:ro
- ./bref/php:/var/task/php
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
env_file:
- ~/Dev/cloud-extension-yii2/.env.cloud
environment:
HANDLER: web/index.php
DOCUMENT_ROOT: web
VIRTUAL_HOST: $DDEV_HOSTNAME
HTTP_EXPOSE: "8000:8000"
HTTPS_EXPOSE: "8081:8000"
PHP_IDE_CONFIG: serverName=bref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment