This file contains hidden or 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
| FROM httpd:2.4-alpine | |
| RUN apk update; \ | |
| apk upgrade; | |
| # copying local vhost file to apache directory | |
| COPY conf/docker-apache-php-fpm.conf /usr/local/apache2/conf/app.conf | |
| RUN echo "Include /usr/local/apache2/conf/app.conf" \ | |
| >> /usr/local/apache2/conf/httpd.conf |
This file contains hidden or 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
| FROM php:7.1-fpm-alpine | |
| RUN apk update; \ | |
| apk upgrade; \ | |
| apk add libxml2-dev libpng-dev git | |
| # installing extensions | |
| RUN docker-php-ext-install mysqli soap mbstring xml pdo_mysql gd zip | |
| # using production php.ini |
This file contains hidden or 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
| LoadModule deflate_module /usr/local/apache2/modules/mod_deflate.so | |
| LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so | |
| LoadModule proxy_fcgi_module /usr/local/apache2/modules/mod_proxy_fcgi.so | |
| LoadModule rewrite_module modules/mod_rewrite.so | |
| LoadModule log_config_module modules/mod_log_config.so | |
| <VirtualHost *:80> | |
| ServerName www.test.com | |
| # Proxying PHP requisitions to port 9000 of php-fpm container ("/var/www/html" is the location of index.php) |