Skip to content

JustGetSchwifty/docker-apache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-apache

Canonical source repository for the Apache container image published as ghcr.io/justgetschwifty/apache.

Purpose

This repository contains the Docker build sources for the Apache image published as ghcr.io/justgetschwifty/apache and provides a minimal, runnable example.

Example (minimal)

There is a minimal runnable example in examples/minimal/ that starts Apache and PHP-FPM with conservative defaults and exposes HTTP on http://localhost:8080.

Package Overview

  • Image: ghcr.io/justgetschwifty/apache
  • Primary tag: latest
  • Platforms: linux/amd64, linux/arm64
  • Role: front-end web server for a Docker stack

Why This Image Exists

The image is designed to provide a clean Apache runtime that works well as a modern HTTP entrypoint in front of PHP-FPM services.

That gives a few practical benefits:

  • a single, repeatable Apache runtime for local development and server deployments
  • predictable module enablement instead of ad-hoc host configuration
  • good compatibility with reverse proxy and PHP-FPM based workloads
  • one multi-architecture image that works on common x86_64 servers and Apple Silicon machines

What Is Inside

The current image is built from debian:13-slim and installs a focused Apache runtime with a small set of supporting packages.

Included packages:

  • apache2
  • ca-certificates
  • curl

Enabled Apache modules:

  • mpm_event
  • proxy
  • proxy_fcgi
  • setenvif
  • rewrite
  • headers
  • expires
  • filter
  • deflate
  • brotli
  • remoteip
  • status
  • http2
  • unique_id

Default changes made during image build:

  • mpm_prefork is disabled
  • other-vhosts-access-log is disabled
  • /var/www/websites is created for site content
  • /var/log/websites is created for site logs
  • both directories are owned by www-data

Why This Is Good To Use

This image is useful when you want Apache to behave as a stable, documented part of your application stack instead of an opaque machine-specific dependency.

It is a good fit because it gives you:

  • consistent behavior between developer machines and deployed environments
  • HTTP/2, compression, rewrite handling, and reverse proxy features already enabled
  • a clear contract for PHP-FPM fronting through proxy_fcgi
  • a documented GHCR package with a real source repository behind it

Intended Use Cases

Use this image when you need:

  • Apache as the public web server in front of PHP-FPM containers
  • a reusable web runtime for a Docker stack
  • a multi-architecture image that runs on both server-grade x86_64 systems and Apple Silicon hosts
  • a documented package page in GHCR instead of an unlabeled internal image

Pull

docker pull ghcr.io/justgetschwifty/apache:latest

Relationship To The Build Sources

This repository is the canonical source for the Dockerfile used to build the published Apache image.

The image is feature-rich, but it is still designed to stay reasonably small. The default example configuration is conservative and targets servers with limited RAM and CPU.

About

Apache runtime image for Shadow, documented and linked to GHCR with multi-arch support.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors