{"repo":"rsubr/php-apache-ubuntu","free":true,"listed":false,"github":"https://github.com/rsubr/php-apache-ubuntu","clone":"git clone https://github.com/rsubr/php-apache-ubuntu.git","description":"Docker image for PHP, Apache using Ubuntu core. This image is suitable for running WordPress, Drupal, phpmyadmin, applications with high density and security.","language":"Dockerfile","stars":21,"topics":["docker","php-apache-ubuntu","aws-lambda-php","serverless","wordpress","drupal"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Description DIY AWS Lambda for PHP applications! Docker image containing Ubuntu 26.04 LTS core with Apache and PHP. This image is designed to be used in AWS environments for high density PHP application hosting. WordPress 5.x and Drupal 10.x and later are tested to work. Architecture Overview Run multiple EC2 instances across different availability zones to create a redundant docker swarm. Cloudwatch alarms must be used to restart failed EC2 instances. All EC2 instances must join the docker swarm and mount a common EFS volume on /srv . Docker container will mount /srv/example.com/www as the Apache DocumentRoot to serve php applications. RDS must be used for hosting databases. When this image is run as a docker service in the swarm, a unique port on the host (eg tcp:8001) is mapped to 80 within the container. AWS Target Group example-com is created with all the EC2 instances of the swarm and specific TCP port (eg tcp:8001) and attached to ALB. Docker mesh routing is not cookie/sticky session aware and disabled. HTTP load balancing is fully managed on AWS ALB. AWS ALB rules are used to route example.com and www.example.com requests to example-com Target Group. AWS ALB is also used for HTTPS termination, docker containers provide only vanilla HTTP. Outbound emails must be routed via SES (Drupal SMTP module, WP SMTP plugin, etc). Apache logs are sent to stdout/stderr and can be routed to AWS Cloudwatch using the docker awslogs log driver. Filesystem Layout /srv -- base dir to be ","default_branch":null,"files":null,"tree":[],"storefront":"/r/rsubr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rsubr/php-apache-ubuntu/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}