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:
Daniel F. J. Dantur 2019-06-29 01:34:49 -03:00
parent a2c7b46766
commit 5d56cc83e6
1 changed files with 4 additions and 0 deletions

View File

@ -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/