blackbirdchess-docker-dev/apache2/Dockerfile
Daniel F. J. Dantur 5d56cc83e6 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.
2019-06-29 01:34:49 -03:00

29 lines
624 B
Docker

FROM webdevops/apache:ubuntu-16.04
LABEL maintainer="Eric Pfeiffer <computerfr33k@users.noreply.github.com>"
ARG PHP_UPSTREAM_CONTAINER=php-fpm
ARG PHP_UPSTREAM_PORT=9000
ARG PHP_UPSTREAM_TIMEOUT=60
ARG DOCUMENT_ROOT=/var/www/
ENV WEB_PHP_SOCKET=${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}
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/
COPY vhost.conf /etc/apache2/sites-enabled/vhost.conf
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
CMD ["supervisord"]