mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-06 03:15:34 +01:00
Add Apache support to Drupal
This commit is contained in:
parent
2f6673d941
commit
3065597f64
7 changed files with 34 additions and 4 deletions
|
@ -65,7 +65,11 @@ RUN {{ command }}
|
|||
COPY --chown=app:app tools/docker/images/php/root /
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint-php"]
|
||||
{% if web.type == "apache" %}
|
||||
CMD ["apache2-foreground"]
|
||||
{% else %}
|
||||
CMD ["php-fpm"]
|
||||
{% endif %}
|
||||
|
||||
{% if dockerfile.stages.test %}
|
||||
################################################################################
|
||||
|
|
8
templates/php/drupal/apache/000-default.conf.twig
Normal file
8
templates/php/drupal/apache/000-default.conf.twig
Normal file
|
@ -0,0 +1,8 @@
|
|||
# {{ managedText|raw }}
|
||||
|
||||
<VirtualHost *:80>
|
||||
DocumentRoot /var/www/html/{{ drupal.docroot }}
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
Loading…
Add table
Add a link
Reference in a new issue