https://github.com/semhoun/docker_webserver
https://github.com/semhoun/docker_webserver
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/semhoun/docker_webserver
- Owner: semhoun
- License: mit
- Created: 2022-03-06T18:26:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-11-22T18:27:12.000Z (7 months ago)
- Last Synced: 2025-11-22T20:27:42.471Z (7 months ago)
- Language: Dockerfile
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Semhoun's Webserver
[](https://opensource.org/licenses/MIT)  
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.
* [Windows](https://docs.docker.com/windows/started)
* [OS X](https://docs.docker.com/mac/started/)
* [Linux](https://docs.docker.com/linux/started/)
### Usage
#### Docker
```shell
docker run -v ./www:/www semhoun/webserver
```
#### Docker Compose
```yaml
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
* [GitLab](https://gitlab.com/semhoun/docker_webserver)
* [DockerHub](https://hub.docker.com/repository/docker/semhoun/webserver)
## Authors
* **Nathanaël Semhoun** - [semhoun](https://gitlab.com/semhoun)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.