Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.39 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.39 KB

lephare/apache Docker image

Reference Apache 2.4 container for Le Phare projects

Usage

services:
  php:
    image: lephare/php:latest
    # ...

  web:
    image: lephare/apache:2.4
    volumes_from:
      - php:ro
    labels:
      caddy: "app.${DOCKER_HOST_SUFFIX:-local}"
      caddy.tls: internal
      caddy.reverse_proxy: "{{ upstreams }}"
    environment:
      DOCUMENT_ROOT: "/var/www/symfony/public"

Configuration

The following settings can be adjusted using environment variables.

Variable Type Description Default
DOCUMENT_ROOT string Apache DocumentRoot /var/www/symfony/web
APACHE_LOG_DIR string Apache log directory /var/log/apache2
APACHE_LOG_PREFIX string Apache log filename prefix app
PHP_CONTAINER_NAME string PHP-FPM Docker container name / hostname php