Skip to content

semhoun/docker_webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semhoun's Webserver

License: MIT Docker Size Docker Pull

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

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published