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
5a84638
commit aff611a
Showing
1 changed file
with
31 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,31 @@ | ||
# https://docs.tugboatqa.com/reference/tugboat-configuration/ | ||
# https://docs.tugboatqa.com/starter-configs/tutorials/drupal-10/ | ||
services: | ||
database: | ||
image: tugboatqa/mariadb:10.5 | ||
commands: | ||
init: | ||
# Increase the allowed packet size to 512MB. | ||
- mysql -e "SET GLOBAL max_allowed_packet=536870912;" | ||
# Ensure this packet size persists even if MySQL restarts. | ||
- echo "max_allowed_packet=536870912" >> /etc/mysql/conf.d/tugboat.cnf | ||
build: [] | ||
|
||
webserver: | ||
image: tugboatqa/php:8.3-apache | ||
default: true | ||
depends: database | ||
commands: | ||
init: | ||
- docker-php-ext-install opcache | ||
- a2enmod headers rewrite | ||
- 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 {} \; |