This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
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
1 parent
14a61a1
commit 53d4284
Showing
1 changed file
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# https://docs.tugboatqa.com/reference/tugboat-configuration/ | ||
# https://docs.tugboatqa.com/starter-configs/tutorials/drupal-10/ | ||
services: | ||
webserver: | ||
image: tugboatqa/php:8.3-apache | ||
default: true | ||
commands: | ||
init: | ||
- docker-php-ext-install opcache | ||
- a2enmod headers rewrite | ||
- echo "memory_limit = -1" >> /usr/local/etc/php/conf.d/my-php.ini | ||
- ln -snf "${TUGBOAT_ROOT}/web" "${DOCROOT}" | ||
build: | ||
- composer install | ||
- composer run drupal:install | ||
|
||
# Make sure files and translations folders exist and are writable. | ||
- mkdir -p "${DOCROOT}/sites/default/files/translations" | ||
- chgrp -R www-data "${DOCROOT}/sites/default/files" | ||
- find "${DOCROOT}/sites/default/files" -type d -exec chmod 2775 {} \; | ||
- find "${DOCROOT}/sites/default/files" -type f -exec chmod 0664 {} \; | ||
|
||
# Enable verbose error logging (debug mode). | ||
- ./vendor/bin/drush config:set --yes system.logging error_level verbose | ||
- ./vendor/bin/drush config:get system.logging error_level |