Add LOG_STDOUT and LOG_SDERR required environment variables
Fixes Apache crashes due permission errors related to log files docker.stdout and docker.stderr. Logs are now created in /var/log/apache2 as defined in docker-compose.yml apahce2 volumes. Logs are named access.log and error.log like the Apache default log names are.
This commit is contained in:
parent
a2c7b46766
commit
5d56cc83e6
|
@ -13,6 +13,10 @@ ENV WEB_DOCUMENT_ROOT=${DOCUMENT_ROOT}
|
|||
|
||||
ENV WEB_PHP_TIMEOUT=${PHP_UPSTREAM_TIMEOUT}
|
||||
|
||||
ENV LOG_STDOUT=/var/log/apache2/access.log
|
||||
|
||||
ENV LOG_STDERR=/var/log/apache2/error.log
|
||||
|
||||
EXPOSE 80 443
|
||||
|
||||
WORKDIR /var/www/
|
||||
|
|
Loading…
Reference in New Issue