Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.09 KB

apache.md

File metadata and controls

31 lines (22 loc) · 1.09 KB

webdevops/apache

Apache without PHP, on webdevops/base.

Tags

Tag Based on
alpine webdevops/base:alpine (Alpine 3.11, Apache 2.4.51)

Alpine 3.11 has had no security updates since November 2021, see Known issues.

Usage

services:
  web:
    image: webdevops/apache:alpine
    ports:
      - "8080:80"
    environment:
      WEB_DOCUMENT_ROOT: /app/public
    volumes:
      - ./:/app

The document root must exist: the image does not contain /app, and Apache does not start without it.

Ports: 80 (HTTP) and 443 (HTTPS). HTTPS uses a self-signed certificate for *.vm that ships with the image; it expired on 2025-05-01. To use your own certificate, see Configuration files. Started by default: apache.

Settings: Web server (WEB_PHP_SOCKET is empty, there is no PHP; an existing index.html takes precedence over WEB_DOCUMENT_INDEX), hooks in /opt/docker/bin/service.d/httpd.d, see Customization.