Reference Apache 2.4 container for Le Phare projects
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"
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 |