Semhoun's Webserver
Apache / PHP-FPM in one docker.
Used in E-Dune infra.
Getting Started
Prerequisities
In order to run this container you'll need docker installed.
Usage
Docker
docker run -v ./www:/www semhoun/webserver
Docker Compose
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
Environment Variables
SERVER_NAME
- Website url (ie: www.docker.test)SERVER_ADMIN
- Apache webmaster mail (ie: )DEBUG_MODE
- Debug mode (display php errors)
Volumes
/www
- Website location (www/public would be detected as root directory)
Useful File Locations
-
/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
Built With
- Debian bullseye
- Apache
- PHP 8.0
- Supervisor
Find Us
Authors
- Nathanaël Semhoun - semhoun
License
This project is licensed under the MIT License - see the LICENSE.md file for details.