Sign inSign up

lordius/alpine-apache

By lordius

•Updated over 8 years ago

Apache2 in MPM mode image based on Alpine Linux.

Image
1

2.9K

lordius/alpine-apache repository overview

⁠Apache2 (MPM) image for Docker Compose LAMP stack

Apache2 in MPM mode image based on Alpine Linux.

⁠Include own configs

You could mount to /temp_configs_dir with your volume and use own configs. Variable USE_ONLY_CONFIGS - disable using the custom variables in the list below.

⁠How to run

Run image the on port 8080, be aware first you need start proxy(in docker-compose-lamp⁠ PHP-FPM container).

docker run -v /hostDir:/var/www/localhost/htdocs -d -p 8002:8080 -e APACHE_LISTEN_PORT="8080" -e PROXY_PASS="fcgi://php-fpm:8000 /var/www/localhost/htdocs" --name apache2_mpm_container --link php-proxy-container lordius/alpine-apache

⁠Environment Variables

VariableDefault ValueDescription
PROXY_PASSProxyPass fcgi://php-fpm:8000/var/www/localhost/htdocs/$1Line ProxyPass in the /etc/apache2/httpd.conf
APACHE_LISTEN_PORTListen 80Line Listen in the /etc/apache2/httpd.conf
APACHE_LISTEN_SSL_PORTListen 443, <VirtualHost _default_:443>, ServerName localhost:443Lines Listen, <VirtualHost _default_:443>, ServerName localhost:443 in the /etc/apache2/conf.d/ssl.conf
DOCUMENT_ROOTDocumentRoot "/var/www/localhost/htdocs", DocumentRoot "/var/www/localhost/htdocs"Lines DocumentRoot in the /etc/apache2/httpd.conf, /etc/apache2/conf.d/ssl.conf
DIRECTORY<Directory "/var/www/localhost/htdocs">Line <Directory "/var/www/localhost/htdocs"> in the /etc/apache2/httpd.conf
APACHE_TIMEOUTTimeout 60Line Timeout in the /etc/apache2/conf.d/default.conf
USE_ONLY_CONFIGS0Skips using custom variables and only use configs from mounted directory to /temp_configs_dir

⁠Full LAMP stack

See Docker Compose LAMP⁠.

Tag summary

Content type

Image

Digest

Size

14.7 MB

Last updated

over 8 years ago

docker pull lordius/alpine-apache