Apache / PHP-FPM in one docker.
Used in E-Dune infra.
In order to run this container you'll need docker installed.
docker run -v ./www:/www semhoun/webserver
version: "3.2"
services:
webserver:
image: semhoun/webserver
environment:
- SERVER_NAME="www.docker.test"
- SERVER_ADMIN="webmaster@docker.test"
volumes:
- ./www/:/www/
ports:
- 8080:80
SERVER_NAME
- Website url (ie: www.docker.test)SERVER_ADMIN
- Apache webmaster mail (ie: )DEBUG_MODE
- Debug mode (display php errors)
/www
- Website location (www/public would be detected as root directory)
-
/etc/apache2/conf-docker/
- Specific confs for docker -
/etc/apache2/conf-docker/20-htdocs.conf
- htdocs configuration (ex: /www/public) -
/etc/apache2/conf-docker/30-healthcheck.conf
- Health check alias configuration -
http://localhost/.well-known/healthcheck
- Health check url
- Debian bullseye
- Apache
- PHP 8.0
- Supervisor
- Nathanaël Semhoun - semhoun
This project is licensed under the MIT License - see the LICENSE.md file for details.