-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added configurable PHP options to ./etc/PHP/
- Loading branch information
1 parent
8bc21f3
commit ccf7c83
Showing
5 changed files
with
25 additions
and
6 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
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,16 @@ | ||
## | ||
# Docker Drupal Development | ||
# | ||
# Override default PHP options | ||
|
||
# Turn on all error reporting | ||
error_reporting = E_ALL | ||
display_errors = On | ||
log_errors = On | ||
|
||
# Increase resource limits | ||
max_execution_time = 300 | ||
memory_limit = 512M | ||
upload_max_filesize = 32M | ||
post_max_size = 32M | ||
max_input_vars = 10000 |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# | ||
# Drupal web server container | ||
|
||
FROM ddd/apache2 | ||
FROM dockerdrupaldev/apache2 | ||
|
||
LABEL maintainer="[email protected]" | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
@@ -38,10 +38,10 @@ RUN locale-gen en_US.UTF-8 && \ | |
apt-get clean | ||
|
||
# Configure PHP | ||
COPY config/php/docker.ini /etc/php/5.6/mods-available/docker.ini | ||
COPY config/php/docker.ini /etc/php/5.6/conf.d/docker.ini | ||
COPY config/php/xdebug.ini /etc/php/5.6/mods-available/xdebug.ini | ||
RUN phpenmod xdebug && \ | ||
ln -s /etc/php/5.6/mods-available/docker.ini /etc/php/5.6/apache2/conf.d/90-docker.ini | ||
ln -s /etc/php/5.6/conf.d/docker.ini /etc/php/5.6/apache2/conf.d/90-docker.ini | ||
|
||
EXPOSE 80 443 | ||
|
||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# | ||
# Drupal web server container | ||
|
||
FROM ddd/apache2 | ||
FROM dockerdrupaldev/apache2 | ||
|
||
LABEL maintainer="[email protected]" | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
@@ -35,12 +35,12 @@ RUN apt-get update && \ | |
apt-get clean | ||
|
||
# Configure PHP | ||
COPY config/php/docker.ini /etc/php/7.0/mods-available/docker.ini | ||
COPY config/php/docker.ini /etc/php/7.0/conf.d/docker.ini | ||
COPY config/php/xdebug.ini /etc/php/7.0/mods-available/xdebug.ini | ||
RUN phpenmod imap && \ | ||
phpenmod mcrypt && \ | ||
phpenmod xdebug && \ | ||
ln -s /etc/php/7.0/mods-available/docker.ini /etc/php/7.0/apache2/conf.d/90-docker.ini | ||
ln -s /etc/php/7.0/conf.d/docker.ini /etc/php/7.0/apache2/conf.d/90-docker.ini | ||
|
||
EXPOSE 80 443 | ||
|
||
|
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